Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit 7ae543b70a1ff000c19cc318083546f654834b96 (origin/kazakov/shift-gesture-slowdown)
- Author: Dmitry Kazakov <dimula73@gmail.com>
- Date: Thu Sep 15 20:18:34 2016 +0300
- Forbid conversion of KisPaintOpSettingsSP into raw pointer
- Now we have the following concepts:
- 1) KisRestrictedSharedPtr --- a KisShared-based shared pointer that
- forbids implicit creation of a shared pointer from raw pointer.
- One should first create a usual shared pointer and assign it to
- a restricted one. Is resolves the issue of accidentally passing
- this pointer into a shared pointer and getting into troubles because
- of that.
- 2) KisPinnedSharedPtr --- a KisShared-based shared pointer that forbids
- implicit conversion into a raw pointer. Therefore, you cannot delete
- this pointer.
- 3) When we port the settings into QSharedPointer, both classes will not
- be needed anymore, because QSharedPointer has both the properties :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement