summaryrefslogtreecommitdiffstats
path: root/tools/linguist
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-29 14:36:04 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-29 14:47:43 (GMT)
commitf08b60f4ca52d525c1dc9890cb0c6661ee34b069 (patch)
treec74497b91c79a9a844e96b821573b2f8fa5dfb4e /tools/linguist
parent3f68329ba1b1c691ecf3ec7b96cd10d0d27f23f8 (diff)
downloadQt-f08b60f4ca52d525c1dc9890cb0c6661ee34b069.zip
Qt-f08b60f4ca52d525c1dc9890cb0c6661ee34b069.tar.gz
Qt-f08b60f4ca52d525c1dc9890cb0c6661ee34b069.tar.bz2
don't complain multiple times about same abuse of //% meta strings
Reviewed-by: Kent Hansen Task-number: QTBUG-11818
Diffstat (limited to 'tools/linguist')
-rw-r--r--tools/linguist/lupdate/cpp.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/linguist/lupdate/cpp.cpp b/tools/linguist/lupdate/cpp.cpp
index 028a64f..25e162f 100644
--- a/tools/linguist/lupdate/cpp.cpp
+++ b/tools/linguist/lupdate/cpp.cpp
@@ -1858,6 +1858,7 @@ void CppParser::parseInternal(ConversionData &cd, QSet<QString> &inclusions)
gotctx:
recordMessage(line, context, text, comment, extracomment, msgid, extra, utf8, plural);
}
+ sourcetext.clear(); // Will have warned about that already
extracomment.clear();
msgid.clear();
extra.clear();
@@ -1913,6 +1914,7 @@ void CppParser::parseInternal(ConversionData &cd, QSet<QString> &inclusions)
}
recordMessage(line, context, text, comment, extracomment, msgid, extra, utf8, plural);
}
+ sourcetext.clear(); // Will have warned about that already
extracomment.clear();
msgid.clear();
extra.clear();
@@ -2079,6 +2081,7 @@ void CppParser::parseInternal(ConversionData &cd, QSet<QString> &inclusions)
case Tok_Semicolon:
prospectiveContext.clear();
prefix.clear();
+ sourcetext.clear();
extracomment.clear();
msgid.clear();
extra.clear();