[Development] Heads up: QWeakPointer re-education
giuseppe.dangelo at kdab.com
Mon Aug 19 11:26:39 CEST 2019
Il 16/08/19 11:02, Mutz, Marc via Development ha scritto:
> It seems that the presence of QWeakPointer::data() in the past has given
> many Qt developers the wrong impression and they're now fighting hard to
> keep that impression intact when porting away from deprecated data().
Many thanks for dealing with the fallout of this deprecation!
Indeed, the important message here is that QWeakPointer is not supposed
to be treated like a raw pointer; std::weak_ptr is lacking data()/get()
for the same reason, although implementing it costs nothing.
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4329 bytes
Desc: Firma crittografica S/MIME
More information about the Development