remove pointless additions
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Wed, 31 Jul 2013 12:45:57 +0000 (14:45 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 6 Aug 2013 07:30:23 +0000 (09:30 +0200)
yyWord is always empty at this point.

Change-Id: I1bf897c61e25d52978a77a0d6121078ef264b503
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
src/linguist/lupdate/cpp.cpp

index 3df17dc..794b865 100644 (file)
@@ -824,7 +824,7 @@ uint CppParser::getToken()
             case '/':
                 yyCh = getChar();
                 if (yyCh == '/') {
-                    ushort *ptr = (ushort *)yyWord.unicode() + yyWord.length();
+                    ushort *ptr = (ushort *)yyWord.unicode();
                     do {
                         yyCh = getChar();
                         if (yyCh == EOF)
@@ -835,7 +835,7 @@ uint CppParser::getToken()
                     return Tok_Comment;
                 } else if (yyCh == '*') {
                     bool metAster = false;
-                    ushort *ptr = (ushort *)yyWord.unicode() + yyWord.length();
+                    ushort *ptr = (ushort *)yyWord.unicode();
 
                     forever {
                         yyCh = getChar();
@@ -859,7 +859,7 @@ uint CppParser::getToken()
                 }
                 break;
             case '"': {
-                ushort *ptr = (ushort *)yyWord.unicode() + yyWord.length();
+                ushort *ptr = (ushort *)yyWord.unicode();
                 yyCh = getChar();
                 while (yyCh != EOF && yyCh != '\n' && yyCh != '"') {
                     if (yyCh == '\\') {