--===============0604910941== Content-Type: multipart/signed; boundary="nextPart5397071.GQPl2nRkkH"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart5397071.GQPl2nRkkH Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Monday 29 January 2007 22:51:25 me wrote: > Do you use a d-pointer for your classes and if so are these classes copied > around by the assignment operator? The implicit assignment copies just the > d-pointer itself AFAICS. This overwrites the original d-pointer and the > original private object stays without any pointer to it: mem leakage :(. Hmm, this becomes a non-issue, if you use the proposed form for the d-pointer Private * const d; instead of just Private * d; It'd be cool, if the code checker tests for this. Regards, Stefan --nextPart5397071.GQPl2nRkkH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFvxeFpfDn2DABIpcRAgBVAKCNCb9vCXOqnQABELHkGLTbwrNrUACgmlEj vbpqZDRsq9/gDGPldl5M3G8= =gb+E -----END PGP SIGNATURE----- --nextPart5397071.GQPl2nRkkH-- --===============0604910941== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0604910941==--