[Qt-interest] About QScopedPointer
Thiago Macieira
thiago at kde.org
Sun May 15 18:43:25 CEST 2011
On Sunday, 15 de May de 2011 20:24:21 Constantin Makshin wrote:
> AFAIR, all COM objects are meant to be destroyed using their Release()
> method and not C++'s "delete" operator. So using QScopedPointer doesn't
> seem to be a [very] good idea.
Use the second template parameter to QScopedPointer to tell it how to delete.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110515/c47a5c6d/attachment.bin
More information about the Qt-interest-old
mailing list