diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-08 22:15:07 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-08 22:50:41 +0100 |
commit | 9a744dea1dccb73d77e38ed06d1275f00425a65b (patch) | |
tree | 94036756a6959834f9c44ddbddf3d06e5a21cd07 | |
parent | 8372b3c3d1c3e8a787e174cc31dca55627b74b15 (diff) |
vclptr: assert that we have a >0 ref-count in acquire as well.
Change-Id: Ia2286661a8f62e8a46c44c390ab1a8a5dffe81d0
-rw-r--r-- | include/vcl/outdev.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 66bcccb8febc..a5673eae558a 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -274,6 +274,7 @@ private: inline void acquire() const { + assert(mnRefCnt>0); mnRefCnt++; } |