Wrong QSharedDataPointer<Private> in kdelibs?
Thiago Macieira
thiago at kde.org
Wed Apr 23 20:47:58 BST 2008
Christian Ehrlicher wrote:
>Hi,
>
>Everywhere in kdelibs I see such constructs:
>
>QSharedDataPointer<Private> d;
>
>KFoo::KFoo() : d(new Private())
>{}
>
>KFoo::~KFoo()
>{}
>
>
>I'm missing 'delete d' in dtor - or do I miss something here?
You're missing the QSharedDataPointer destructor. It takes care of that
for you.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080423/764ec6cb/attachment.sig>
More information about the kde-core-devel
mailing list