KFileInfo: using shared data

Hamish Rodda rodda at kde.org
Fri Apr 14 17:26:04 BST 2006

On Saturday 15 April 2006 02:17, Thiago Macieira wrote:
> Hamish Rodda wrote:
> >Hi,
> >
> >I was looking at KFileInfo and noticed that it was marked as "/// KDE4
> > TODO: make them refcounted, e.g. using QSharedMimeData."
> >
> >So, I started out porting it over to be implicitly shared using
> > QSharedData. Went pretty easily, for the most part.
> >
> >However, changing from pointers shared copies doesn't work well, because
> > when a change is made it means that all of the other instances don't
> > get the change.
> >
> >Is the plan to make this class explicitly shared?
> QSharedMimeData is supposed to be about implicitly sharing.

I'm aware of that.  dfaure and I talked on irc and we decided that KShared was 
what we want here (we want to keep the pointer behaviour with memory 
management for free).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060415/be8012f0/attachment.sig>

More information about the kde-core-devel mailing list