From kde-core-devel Fri Apr 14 16:17:44 2006 From: Thiago Macieira Date: Fri, 14 Apr 2006 16:17:44 +0000 To: kde-core-devel Subject: Re: KFileInfo: using shared data Message-Id: <200604141817.46062.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=114503150907077 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart2272073.IxuIZsmZmf" --nextPart2272073.IxuIZsmZmf Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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. =2D-=20 Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org thiago.macieira (AT) trolltech.com Trolltech AS GPG: 0x6EF45358 | Sandakerveien 116, E067 918B B660 DBD1 105C | NO-0402 966C 33F5 F005 6EF4 5358 | Oslo, Norway --nextPart2272073.IxuIZsmZmf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEP8sqM/XwBW70U1gRAvkwAKCW0N21HVfmNJtxB19kiV40eXeHdwCghGtE x9S2lDBfdx8LfkY7fRYdntw= =f/H0 -----END PGP SIGNATURE----- --nextPart2272073.IxuIZsmZmf--