Compile fixes (strict iterators + no deprecated kutils)

Kevin Ottens ervin at kde.org
Thu Oct 7 08:23:12 UTC 2010


On Thursday 7 October 2010 10:05:03 Esben Mose Hansen wrote:
> THe 2nd one is actually pretty interesting. Apparantly, QT creates a deep
> copy of any implicitly shared QList upon calling .begin() (or .end()). I
> suppose that might be  a problem.
> 
> The typedef itself is pretty broken, though. iterator really should be
> convertible to const_iterator.

Well, it does by default, but not when you build using QT_STRICT_ITERATORS 
like me though... Which helps catching the wrong uses of .begin() that you 
pointed out.

Regards.
-- 
Kévin Ottens, http://ervin.ipsquad.net

KDAB - proud patron of KDE, http://www.kdab.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20101007/01d42764/attachment.sig>


More information about the KDevelop-devel mailing list