[prev in list] [next in list] [prev in thread] [next in thread]
List: kopete-devel
Subject: Re: [kopete-devel] [PATCH] Avoiding to test on end()
From: Olivier Goffart <ogoffart () kde ! org>
Date: 2005-06-26 7:32:14
Message-ID: 200506260932.17760.ogoffart () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Le Samedi 25 Juin 2005 19:43, Michel Hermier a =E9crit=A0:
> Hi,
> This patch avoids to loop until reaching end(); while decrementing the
> iterator. The current code is wrong for 2 reasons:
> - decrementing to the begin of the list doesn't return the same value as
> end(); - decrementing to the iterator at the first place, is undefined (s=
ee
> http://doc.trolltech.com/3.3/qmapiterator.html#operator-- )
> So this provoke an invalid read (potential crash).
So there are really no way to browse a QMap from the end to the beginning ?
[Attachment #5 (application/pgp-signature)]
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic