summaryrefslogtreecommitdiff
path: root/include/svx/xpoly.hxx
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-07-12 21:22:25 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-14 07:06:44 +0000
commit09f88760acddc96cb38febd36fd987eefaa04bc0 (patch)
treed2078ee7de4d3dfa580dd8ae84d87a058965085a /include/svx/xpoly.hxx
parent742e632d8acbe5d0a036d748c062a6616acfdf4a (diff)
tdf#62525 vcl: use cow_wrapper for ImpXPolyPolygon
Change-Id: Ida272942d2fdb0a4a7d4906bbbc2423b459591ac Reviewed-on: https://gerrit.libreoffice.org/27170 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/svx/xpoly.hxx')
-rw-r--r--include/svx/xpoly.hxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/svx/xpoly.hxx b/include/svx/xpoly.hxx
index e68d89dd4420..9400ce55c015 100644
--- a/include/svx/xpoly.hxx
+++ b/include/svx/xpoly.hxx
@@ -119,13 +119,10 @@ class ImpXPolyPolygon;
class SVX_DLLPUBLIC XPolyPolygon
{
protected:
- ImpXPolyPolygon* pImpXPolyPolygon;
-
- // check ImpXPolyPolygon-ReferenceCount and decouple if necessary
- void CheckReference();
+ o3tl::cow_wrapper< ImpXPolyPolygon > pImpXPolyPolygon;
public:
- XPolyPolygon( sal_uInt16 nInitSize = 16, sal_uInt16 nResize = 16 );
+ XPolyPolygon();
XPolyPolygon( const XPolyPolygon& rXPolyPoly );
~XPolyPolygon();