summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-07-03 09:55:06 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-07-06 11:54:42 (GMT)
commite446729d99bebaf7fac0110fcf22fc867d7229cb (patch)
treed810276edcc4c2f27a1d3f7b13640ff85cceec3e
parentf0cd15365d683ad1998a32aab305cbcf69c3140e (diff)
downloadQt-e446729d99bebaf7fac0110fcf22fc867d7229cb.zip
Qt-e446729d99bebaf7fac0110fcf22fc867d7229cb.tar.gz
Qt-e446729d99bebaf7fac0110fcf22fc867d7229cb.tar.bz2
remove arbitrary string length limits
-rw-r--r--tools/linguist/lupdate/cpp.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/tools/linguist/lupdate/cpp.cpp b/tools/linguist/lupdate/cpp.cpp
index b1d2d01..35b41d4 100644
--- a/tools/linguist/lupdate/cpp.cpp
+++ b/tools/linguist/lupdate/cpp.cpp
@@ -58,10 +58,6 @@ QT_BEGIN_NAMESPACE
static const char MagicComment[] = "TRANSLATOR ";
-static const int yyIdentMaxLen = 128;
-static const int yyCommentMaxLen = 65536;
-static const int yyStringMaxLen = 65536;
-
#define STRINGIFY_INTERNAL(x) #x
#define STRINGIFY(x) STRINGIFY_INTERNAL(x)
#define STRING(s) static QString str##s(QLatin1String(STRINGIFY(s)))
@@ -668,14 +664,9 @@ uint CppParser::getToken()
yyCh = getChar();
if (yyCh == EOF || yyCh == '\n')
break;
- if (yyString.size() < yyStringMaxLen) {
- yyString.append(QLatin1Char('\\'));
- yyString.append(yyCh);
- }
- } else {
- if (yyString.size() < yyStringMaxLen)
- yyString.append(yyCh);
+ yyString.append(QLatin1Char('\\'));
}
+ yyString.append(yyCh);
yyCh = getChar();
}