[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KDE/kdelibs/kdecore
From: "Roland Harnau" <truthandprogress () googlemail ! com>
Date: 2008-07-08 13:01:55
Message-ID: 476f836a0807080601j3a796c2arf30059a73bdfd0c8 () mail ! gmail ! com
[Download RAW message or body]
2008/7/8, Thiago Macieira <thiago@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic