Kaydet (Commit) 64ced968 authored tarafından Michael Stahl's avatar Michael Stahl

basegfx: remove global ImplB2DPolyPolygon

Change-Id: I6035aaf8aabf71062bb63a4d416c253378fb4756
üst 7e911e9c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment