[Development] Undeprecating QPointer
Thiago Macieira
thiago.macieira at intel.com
Thu Mar 15 19:37:31 CET 2012
On sexta-feira, 2 de março de 2012 10.27.56, Thiago Macieira wrote:
> Hello
>
> QPointer was ported to a QWeakPointer backend and deprecated early in Qt 5
> history. However, QPointer is used throughout our code and, I can expect, in
> user code too. Replacing it with QWeakPointer is just monkey work, adding
> .data() everywhere and buying us no better safety (because no one will
> bother to verify that the pointer could be got at that point). After the
> port to QWeakPointer, QPointer is no longer slow either.
>
> I'd like to suggest we un-deprecate it and bring it back to full status. At
> the same time, I'd like to suggest we discourage using QWeakPointer for
> tracking QObjects, instead leaving it to its original purpose of being the
> weak reference counterpart to QSharedPointer.
No one has objected. Can someone remove the deprecation marks in QPointer,
please?
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120315/5190c614/attachment.sig>
More information about the Development
mailing list