summaryrefslogtreecommitdiffstats
path: root/tools/linguist/lupdate
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-15 12:33:18 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-15 12:38:23 (GMT)
commit59aa130bb9209aa1809c7bd31f694265eeb1baf1 (patch)
treef6e0017c0c623e5769bbac48cd40b458232122c8 /tools/linguist/lupdate
parent0b2b41f11b5e037f93480a1af2c84c59739f685d (diff)
downloadQt-59aa130bb9209aa1809c7bd31f694265eeb1baf1.zip
Qt-59aa130bb9209aa1809c7bd31f694265eeb1baf1.tar.gz
Qt-59aa130bb9209aa1809c7bd31f694265eeb1baf1.tar.bz2
When parsing a java file do not simply ignore the first character.
If the file started with a comment (/* .. */) the parser would not see the first '/' character, thus it would not treat it as a comment. This was because we called getChar() just before we called parse(), and just after we had entered parse().
Diffstat (limited to 'tools/linguist/lupdate')
-rw-r--r--tools/linguist/lupdate/java.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/linguist/lupdate/java.cpp b/tools/linguist/lupdate/java.cpp
index 05b1987..3f532d5 100644
--- a/tools/linguist/lupdate/java.cpp
+++ b/tools/linguist/lupdate/java.cpp
@@ -631,7 +631,6 @@ bool loadJava(Translator &translator, const QString &filename, ConversionData &c
yyFileName = filename;
yyCurLineNo = 1;
yyParenLineNo = 1;
- yyCh = getChar();
parse(&translator);