KDE/kdevplatform/shell

Andreas Pakulat apaku at gmx.de
Tue Jul 21 05:23:09 UTC 2009


On 19.07.09 13:26:37, Milian Wolff wrote:
> SVN commit 999227 by mwolff:
> 
> fix warning for copy constructor not initializing base class QObject.
> 
> I first wanted to do : QObject(rhs) but that is private :-/ hope this fix is correct.

We should never have a public/private/protected copy constructor for any
QObject based class. That doesn't make the slightest sence. For example
this one will loose the connection to the parent and hence will create a
memory leak.

Andreas

-- 
You would if you could but you can't so you won't.




More information about the KDevelop-devel mailing list