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

Richard Dale rdale at foton.es
Tue Apr 1 16:17:07 BST 2008


On Tuesday 01 April 2008 16:06:13 Thiago Macieira wrote:
> 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.
That sounds good to me - and maybe call them KConfigure, KConfigureGroup etc

-- Richard




More information about the kde-core-devel mailing list