summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-08-18 20:33:57 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-09-23 15:44:27 +0200
commit13fa5aa35e6cbf6bf7710952f541810fee7bba27 (patch)
tree58a4ef16a96b825d10d0ba0c731dc28761597e86 /tools
parent830fd43c53a9cd53d626b8f6fe3682d92df0cc59 (diff)
downloadqt4-tools-13fa5aa35e6cbf6bf7710952f541810fee7bba27.tar.gz
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.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/linguist/lupdate/cpp.cpp b/tools/linguist/lupdate/cpp.cpp
index 8e9933d355..f6ebfb1fab 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) {