forked from qt-creator/qt-creator
work around MSVC2010 ICE
Task-number: QTBUG-42064 Change-Id: Ifffcc0cf9109b76d79f603a13792d7fd9979761c Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com> (cherry picked from qtbase/87eb3ea1904756362ce5474838b25b5b00193dc5)
This commit is contained in:
committed by
Oswald Buddenhagen
parent
fec32126dd
commit
e5616a8035
@@ -409,8 +409,8 @@ QStringList ProStringList::toQStringList() const
|
||||
{
|
||||
QStringList ret;
|
||||
ret.reserve(size());
|
||||
foreach (const ProString &str, *this)
|
||||
ret << str.toQString();
|
||||
for (int i = 0; i < size(); i++) // foreach causes MSVC2010 ICE
|
||||
ret << at(i).toQString();
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user