summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-08-25 20:56:28 +0200
committerMichael Stahl <mstahl@redhat.com>2017-08-25 21:25:39 +0200
commit64ced968cc82b552e178da033e7a3b5af6996ae1 (patch)
tree69d55d6702e56cf0dc0b15bb7e9956b4270e6e35 /basegfx
parent7e911e9cd469d30369c213aa529675b3f7c4f0e8 (diff)
basegfx: remove global ImplB2DPolyPolygon
Change-Id: I6035aaf8aabf71062bb63a4d416c253378fb4756
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/polygon/b2dpolypolygon.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygon.cxx b/basegfx/source/polygon/b2dpolypolygon.cxx
index 9c6b1eb50fe9..eaed3bacdc54 100644
--- a/basegfx/source/polygon/b2dpolypolygon.cxx
+++ b/basegfx/source/polygon/b2dpolypolygon.cxx
@@ -21,7 +21,6 @@
#include <osl/diagnose.h>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
-#include <rtl/instance.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <functional>
@@ -170,11 +169,9 @@ public:
namespace basegfx
{
- namespace { struct DefaultPolyPolygon: public rtl::Static<B2DPolyPolygon::ImplType,
- DefaultPolyPolygon> {}; }
- B2DPolyPolygon::B2DPolyPolygon() :
- mpPolyPolygon(DefaultPolyPolygon::get())
+ B2DPolyPolygon::B2DPolyPolygon()
+ : mpPolyPolygon()
{
}
@@ -325,7 +322,7 @@ namespace basegfx
void B2DPolyPolygon::clear()
{
- mpPolyPolygon = DefaultPolyPolygon::get();
+ *mpPolyPolygon = ImplB2DPolyPolygon();
}
bool B2DPolyPolygon::isClosed() const