include/vcl/outdev.hxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 9a744dea1dccb73d77e38ed06d1275f00425a65b
Author: Michael Meeks <[email protected]>
Date: Fri May 8 22:15:07 2015 +0100
vclptr: assert that we have a >0 ref-count in acquire as well.
Change-Id: Ia2286661a8f62e8a46c44c390ab1a8a5dffe81d0
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index 66bcccb..a5673ea 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -274,6 +274,7 @@ private:
inline void acquire() const
{
+ assert(mnRefCnt>0);
mnRefCnt++;
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits