Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.0, 5.4.1
-
None
-
Linux 3.8.0-44-generic #66~precise1-Ubuntu SMP Tue Jul 15 04:04:23 UTC 2014 i686 i686 i386 GNU/Linux
-
6716fe8cfdeb5f8cd63d6dde8252b25d86622404
Description
QVector::removeAll(), which is new in Qt 5.4.0, does not remove elements. In my case the vector was a container of QTcpSocket pointers. I would attempt to remove sockets as they were disconnected. But they were not removed.
Changing the container to QList, with no other changes, worked. This behavior is limited to QVector.
Attachments
For Gerrit Dashboard: QTBUG-44592 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
106922,2 | QVector: fix use of invalid iterators in removeAll() | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |
106923,2 | QVector: remove brittle c2m() function | dev | qt/qtbase | Status: MERGED | +2 | 0 |
106924,2 | QVector: fix use of invalid iterators in removeAll() | 5.4.1 | qt/qtbase | Status: ABANDONED | -2 | 0 |