[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdesdk/lokalize/src/catalog/gettext
From:       Nick Shaforostoff <shafff () ukr ! net>
Date:       2012-02-29 14:24:50
Message-ID: 20120229142450.33748AC896 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1282884 by shaforo:

fix fix ;)



 M  +2 -2      gettextstorage.cpp  


--- trunk/KDE/kdesdk/lokalize/src/catalog/gettext/gettextstorage.cpp #1282883:1282884
@@ -311,7 +311,7 @@
     static const QRegExp i18n_file_re("^#. i18n: file: ");
     foreach(const QString &uiLine, commentLines.filter(i18n_file_re))
     {
-        QStringList uiFiles=uiLine.mid(15).split(' ');
+        result+=uiLine.mid(15).split(' ');
     }
 
     bool hasUi=!result.isEmpty();
@@ -319,7 +319,7 @@
     foreach(const QString &cppLine, commentLines.filter(cpp_re))
     {
         if (hasUi && cppLine.startsWith("#: rc.cpp")) continue;
-        QStringList cppFiles=cppLine.mid(3, cppLine.length()-3).split(' ');
+        QStringList cppFiles=cppLine.mid(3).split(' ');
         result+=cppFiles;
     }
     return result;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic