Advertisement
Guest User

Untitled

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