Why don't the KConfig* classes have reference counting on their d-pointers, value semantics?

Thiago Macieira thiago at kde.org
Tue Apr 1 16:06:13 BST 2008


Matthias Kretz wrote:
>Simple answer:
>
>KSharedConfig(Ptr) was added at some point in KDE 3 IIRC. For KDE 4 I
> would have liked to do make KConfig a value-based, ref-counted class
> (like KSharedConfigPtr is now), but the porting effort was too big (I
> did make KInstance value based and that was one week full-time porting
> work - you do that once and never again...).

One solution to the problem is to create a set of wrapper classes that 
have value semantic and keep the current config classes in their 
ref-counted d-pointers.

-- 
  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/20080401/ed71e013/attachment.sig>


More information about the kde-core-devel mailing list