diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-08-18 18:33:57 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-09-23 13:44:27 (GMT) |
commit | 13fa5aa35e6cbf6bf7710952f541810fee7bba27 (patch) | |
tree | 58a4ef16a96b825d10d0ba0c731dc28761597e86 /tools | |
parent | 830fd43c53a9cd53d626b8f6fe3682d92df0cc59 (diff) | |
download | Qt-13fa5aa35e6cbf6bf7710952f541810fee7bba27.zip Qt-13fa5aa35e6cbf6bf7710952f541810fee7bba27.tar.gz Qt-13fa5aa35e6cbf6bf7710952f541810fee7bba27.tar.bz2 |
move static objects out of function scope
cuts away a few thousand instructions.
need to revisit this in case of making the parser a dynamic library.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/linguist/lupdate/cpp.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/linguist/lupdate/cpp.cpp b/tools/linguist/lupdate/cpp.cpp index 8e9933d..f6ebfb1 100644 --- a/tools/linguist/lupdate/cpp.cpp +++ b/tools/linguist/lupdate/cpp.cpp @@ -1186,14 +1186,14 @@ bool CppParser::matchString(QString *s) } } +STRING(QApplication); +STRING(QCoreApplication); +STRING(UnicodeUTF8); +STRING(DefaultCodec); +STRING(CodecForTr); + bool CppParser::matchEncoding(bool *utf8) { - STRING(QApplication); - STRING(QCoreApplication); - STRING(UnicodeUTF8); - STRING(DefaultCodec); - STRING(CodecForTr); - if (yyTok != Tok_Ident) return false; if (yyWord == strQApplication || yyWord == strQCoreApplication) { |