Krita shared pointers usage
Dmitry Kazakov
dimula73 at gmail.com
Sat Dec 20 19:40:06 UTC 2014
| Well as Cyrille was saying it has to be fixed making a check, but since
there's already a copy constructor for weak -> shared, shouldn't we use
that and just put the check before referencing (and if the weak pointer is
invalid setting the shared pointer to NULL)?
Yep, the copy c-tor is a good place.
--
Dmitry Kazakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20141220/ba2f677c/attachment.html>
More information about the kimageshop
mailing list