From kde-core-devel Fri Apr 14 12:46:22 2006 From: Hamish Rodda Date: Fri, 14 Apr 2006 12:46:22 +0000 To: kde-core-devel Subject: KFileInfo: using shared data Message-Id: <200604142246.25381.rodda () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=114502927704558 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart1172686.xf6cpCR9Jn" --nextPart1172686.xf6cpCR9Jn Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I was looking at KFileInfo and noticed that it was marked as "/// KDE4 TODO= :=20 make them refcounted, e.g. using QSharedMimeData." So, I started out porting it over to be implicitly shared using QSharedData= =2E =20 Went pretty easily, for the most part. However, changing from pointers shared copies doesn't work well, because wh= en=20 a change is made it means that all of the other instances don't get the=20 change. Is the plan to make this class explicitly shared? Cheers, Hamish. --nextPart1172686.xf6cpCR9Jn Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBEP5mhH8BtnSmIlUYRAs47AJ4mIeBqM2FBTuajZw7oXpGYwElXWACeOS+Z 8kf02XGpTVvTY2LQiU4tykE= =e487 -----END PGP SIGNATURE----- --nextPart1172686.xf6cpCR9Jn--