[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: 2011-04-01 10:39:53
Message-ID: 20110401103953.95D5BAC8CD () svn ! kde ! org
[Download RAW message or body]
SVN commit 1226702 by shaforo:
fix possible iterator eror (reported by cppcheck)
M +4 -0 gettextexport.cpp
--- trunk/KDE/kdesdk/lokalize/src/catalog/gettext/gettextexport.cpp #1226701:1226702
@@ -315,11 +315,15 @@
QString t=*itm;
itm=list.insert(itm,t);
itm++;
+ if (itm != list.end())
+ {
(*itm)=itm->remove(0,pos);
itm--;
+ if (itm != list.end())
itm->truncate(pos);
}
}
+ }
if( !prependedEmptyLine && list.count() > 1 )
list.prepend( QString() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic