Diffusion Krita fddc7d907878

Add toStrongRef to KisWeakPtr

Authored by gladhorn on Nov 6 2016, 10:07 AM.

Description

Add toStrongRef to KisWeakPtr

Weak pointers don't hold a strong reference, they may
become nullptr at any time. To use them safely, they always have bo be
converted to a strong reference. Further commits can then slowly move
over to users of weak pointers to first convert them to strong pointers
and introduce a check for nullptr at the same time.

Details

Committed
gladhornNov 7 2016, 10:28 PM
Parents
R37:0bf6839a0de4: Prepare a bit for shared pointers with explicit constructors
Branches
Unknown
Tags
Unknown