[PATCH] Revised patch for KUser

Simon Hausmann hausmann at kde.org
Tue Jun 8 14:55:57 BST 2004


On Tuesday 08 June 2004 15:50, André Wöbbeking wrote:
> On Tuesday 08 June 2004 00:00, Simon Hausmann wrote:
> > On Monday 07 June 2004 23:08, André Wöbbeking wrote:
> > > I think you mean const&.
> >
> > No, as allGroups() and users() return values, and references to
> > temporaries are not a good idea :)
>
> why not? const references keep temporaries alive until you leave the
> scope.

Oh, cool, didn't know that. I always thought they didn't. Ah, I guess I'm 
mixing that up with the QList/QListIterator issue.

Learned something new again :) . Thanks

Simon




More information about the kde-core-devel mailing list