qmimetypeparser: more optimized definition of string constants
Change-Id: I0cbc0fef63814ab037bea66ab35b3aa8b6ec800c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
92f37f00f9
commit
5ae1caed43
@ -58,29 +58,29 @@
|
|||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
// XML tags in MIME files
|
// XML tags in MIME files
|
||||||
const char *const mimeInfoTagC = "mime-info";
|
static const char mimeInfoTagC[] = "mime-info";
|
||||||
const char *const mimeTypeTagC = "mime-type";
|
static const char mimeTypeTagC[] = "mime-type";
|
||||||
const char *const mimeTypeAttributeC = "type";
|
static const char mimeTypeAttributeC[] = "type";
|
||||||
const char *const subClassTagC = "sub-class-of";
|
static const char subClassTagC[] = "sub-class-of";
|
||||||
const char *const commentTagC = "comment";
|
static const char commentTagC[] = "comment";
|
||||||
const char *const genericIconTagC = "generic-icon";
|
static const char genericIconTagC[] = "generic-icon";
|
||||||
const char *const iconTagC = "icon";
|
static const char iconTagC[] = "icon";
|
||||||
const char *const nameAttributeC = "name";
|
static const char nameAttributeC[] = "name";
|
||||||
const char *const globTagC = "glob";
|
static const char globTagC[] = "glob";
|
||||||
const char *const aliasTagC = "alias";
|
static const char aliasTagC[] = "alias";
|
||||||
const char *const patternAttributeC = "pattern";
|
static const char patternAttributeC[] = "pattern";
|
||||||
const char *const weightAttributeC = "weight";
|
static const char weightAttributeC[] = "weight";
|
||||||
const char *const caseSensitiveAttributeC = "case-sensitive";
|
static const char caseSensitiveAttributeC[] = "case-sensitive";
|
||||||
const char *const localeAttributeC = "xml:lang";
|
static const char localeAttributeC[] = "xml:lang";
|
||||||
|
|
||||||
const char *const magicTagC = "magic";
|
static const char magicTagC[] = "magic";
|
||||||
const char *const priorityAttributeC = "priority";
|
static const char priorityAttributeC[] = "priority";
|
||||||
|
|
||||||
const char *const matchTagC = "match";
|
static const char matchTagC[] = "match";
|
||||||
const char *const matchValueAttributeC = "value";
|
static const char matchValueAttributeC[] = "value";
|
||||||
const char *const matchTypeAttributeC = "type";
|
static const char matchTypeAttributeC[] = "type";
|
||||||
const char *const matchOffsetAttributeC = "offset";
|
static const char matchOffsetAttributeC[] = "offset";
|
||||||
const char *const matchMaskAttributeC = "mask";
|
static const char matchMaskAttributeC[] = "mask";
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class QMimeTypeParser
|
\class QMimeTypeParser
|
||||||
|
@ -50,30 +50,6 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
class QIODevice;
|
class QIODevice;
|
||||||
|
|
||||||
// XML tags in MIME files
|
|
||||||
extern const char *const mimeInfoTagC;
|
|
||||||
extern const char *const mimeTypeTagC;
|
|
||||||
extern const char *const mimeTypeAttributeC;
|
|
||||||
extern const char *const subClassTagC;
|
|
||||||
extern const char *const commentTagC;
|
|
||||||
extern const char *const genericIconTagC;
|
|
||||||
extern const char *const nameAttributeC;
|
|
||||||
extern const char *const globTagC;
|
|
||||||
extern const char *const aliasTagC;
|
|
||||||
extern const char *const patternAttributeC;
|
|
||||||
extern const char *const weightAttributeC;
|
|
||||||
extern const char *const caseSensitiveAttributeC;
|
|
||||||
extern const char *const localeAttributeC;
|
|
||||||
|
|
||||||
extern const char *const magicTagC;
|
|
||||||
extern const char *const priorityAttributeC;
|
|
||||||
|
|
||||||
extern const char *const matchTagC;
|
|
||||||
extern const char *const matchValueAttributeC;
|
|
||||||
extern const char *const matchTypeAttributeC;
|
|
||||||
extern const char *const matchOffsetAttributeC;
|
|
||||||
extern const char *const matchMaskAttributeC;
|
|
||||||
|
|
||||||
class QMimeTypeParserBase
|
class QMimeTypeParserBase
|
||||||
{
|
{
|
||||||
Q_DISABLE_COPY(QMimeTypeParserBase)
|
Q_DISABLE_COPY(QMimeTypeParserBase)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user