basegfx: remove global ImplB2DPolyPolygon

Change-Id: I6035aaf8aabf71062bb63a4d416c253378fb4756
This commit is contained in:
Michael Stahl 2017-08-25 20:56:28 +02:00
parent 7e911e9cd4
commit 64ced968cc

View File

@ -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