[Qt-interest] Problem with QHash and QThread
Thiago Macieira
thiago at kde.org
Sat Jun 18 16:53:08 CEST 2011
Em Saturday, 18 de June de 2011, às 15:07:57, Andrei Cimpean escreveu:
> I am sorry for this. I re-read everything today and saw where I made my
> mistake. For everybody who will get in this place again:
> don't use const_iterator use iterator.
Always use const_iterator when doing const operations. Do not mix
const_iterators with iterators.
QHash<QPoint,int>::iterator i = rhombus.points.constBegin();
is not valid.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110618/06af565c/attachment.bin
More information about the Qt-interest-old
mailing list