[PATCH] making the KConfigSkeleton copy ctor private

Alexander Neundorf neundorf at kde.org
Sat Jun 19 22:25:47 BST 2004


the KConfigSkeleton class doesn't have a copy ctor or an operator=, features a 
private d-pointer but doesn't make the copy ctor private, so assignment is 
allowed. This way the d-pointer is deleted from every copied object :-/
Making the copy ctor private will protect against this misusage, but OTOH also 
perhaps break compilation here and there in KDE cvs (at least kdemultimedia/

Unfortunately I don't have the time to check or fix where it breaks stuff, so 
I'm posting the patch here.

Work: alexander.neundorf at jenoptik.com - http://www.jenoptik-los.de
Home: neundorf at kde.org                - http://www.kde.org
      alex at neundorf.net               - http://www.neundorf.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kconfigskeleton.h.diff
Type: text/x-diff
Size: 500 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040619/8c097f4d/attachment.diff>

More information about the kde-core-devel mailing list