mirror of https://github.com/qt/qtbase.git
work around MSVC2010 ICE
Task-number: QTBUG-42064 Change-Id: Ifffcc0cf9109b76d79f603a13792d7fd9979761c Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
parent
e1ff27ca28
commit
87eb3ea190
|
@ -416,8 +416,8 @@ QStringList ProStringList::toQStringList() const
|
||||||
{
|
{
|
||||||
QStringList ret;
|
QStringList ret;
|
||||||
ret.reserve(size());
|
ret.reserve(size());
|
||||||
foreach (const ProString &str, *this)
|
for (int i = 0; i < size(); i++) // foreach causes MSVC2010 ICE
|
||||||
ret << str.toQString();
|
ret << at(i).toQString();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue