[PATCH] KUser and new class KGroup

Lubos Lunak l.lunak at suse.cz
Thu Jun 3 21:36:00 BST 2004

Dne čt 3. června 2004 18:00 Jan Schäfer napsal(a):
> Hash: SHA1
> Hi,
> I have written a new class KGroup which represents a UNIX group.
> It is very similar to KUser.
> I also added some new methods to KUser.
> What do you think? Can I commit?

 The assignment operator has the usual return type bug. The proper prototype 
for assignment operator in class T is

 T& T::operator=( const T& )

 i.e. the value returned should be *this (so that one can do a = b = c = d).

 Lubos Lunak
 KDE Developer

More information about the kde-core-devel mailing list