Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.8.6
-
None
-
Microsoft Visual Stuidio 2008
Description
Just like:
// an empty QList QList<int> lst; for(QList<int>::const_iterator iter = lst.constBegin(); iter != lst.end(); ++iter) { qDebug() << *iter; }
The code above cannot work and will lead to a crash, only because I use 'lst.end()' instead of 'lst.constEnd()'. But the problem disappers when the QList is not empty.