summaryrefslogtreecommitdiff
path: root/include/svx/xpoly.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/svx/xpoly.hxx')
-rw-r--r--include/svx/xpoly.hxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/svx/xpoly.hxx b/include/svx/xpoly.hxx
index 8015ac346e2c..e68d89dd4420 100644
--- a/include/svx/xpoly.hxx
+++ b/include/svx/xpoly.hxx
@@ -21,6 +21,7 @@
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <svx/svxdllapi.h>
+#include <o3tl/cow_wrapper.hxx>
class Point;
class Rectangle;
@@ -50,10 +51,7 @@ class ImpXPolygon;
class SVX_DLLPUBLIC XPolygon
{
protected:
- ImpXPolygon* pImpXPolygon;
-
- // check ImpXPolygon-ReferenceCount and decouple if necessary
- void CheckReference();
+ o3tl::cow_wrapper< ImpXPolygon > pImpXPolygon;
// auxiliary functions for Bezier conversion
void SubdivideBezier(sal_uInt16 nPos, bool bCalcFirst, double fT);