KDE/kdelibs/kdecore
Roland Harnau
truthandprogress at googlemail.com
Tue Jul 8 14:01:55 BST 2008
2008/7/8, Thiago Macieira <thiago at kde.org>:
> Andreas Pakulat wrote:
>>I'm not sure why the const_this is needed here anyway, shouldn't a
>> simple const_iterator and ::constEnd() be sufficient too?
>
> It's needed because of the missing constFind() function.
const_iterator QHash::constFind ( const Key & key ) const
does exist, at least in Qt's API reference. I think it really improves readability if the const versions (constBegin(), constEnd(), constFind()) are used without the need to rely on subtle rules for resolving overloaded methods.
Roland
More information about the kde-core-devel
mailing list