basegfx: remove global ImplB2DPolyPolygon
Change-Id: I6035aaf8aabf71062bb63a4d416c253378fb4756
This commit is contained in:
parent
7e911e9cd4
commit
64ced968cc
@ -21,7 +21,6 @@
|
|||||||
#include <osl/diagnose.h>
|
#include <osl/diagnose.h>
|
||||||
#include <basegfx/polygon/b2dpolygon.hxx>
|
#include <basegfx/polygon/b2dpolygon.hxx>
|
||||||
#include <basegfx/polygon/b2dpolypolygontools.hxx>
|
#include <basegfx/polygon/b2dpolypolygontools.hxx>
|
||||||
#include <rtl/instance.hxx>
|
|
||||||
#include <basegfx/matrix/b2dhommatrix.hxx>
|
#include <basegfx/matrix/b2dhommatrix.hxx>
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
@ -170,11 +169,9 @@ public:
|
|||||||
|
|
||||||
namespace basegfx
|
namespace basegfx
|
||||||
{
|
{
|
||||||
namespace { struct DefaultPolyPolygon: public rtl::Static<B2DPolyPolygon::ImplType,
|
|
||||||
DefaultPolyPolygon> {}; }
|
|
||||||
|
|
||||||
B2DPolyPolygon::B2DPolyPolygon() :
|
B2DPolyPolygon::B2DPolyPolygon()
|
||||||
mpPolyPolygon(DefaultPolyPolygon::get())
|
: mpPolyPolygon()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -325,7 +322,7 @@ namespace basegfx
|
|||||||
|
|
||||||
void B2DPolyPolygon::clear()
|
void B2DPolyPolygon::clear()
|
||||||
{
|
{
|
||||||
mpPolyPolygon = DefaultPolyPolygon::get();
|
*mpPolyPolygon = ImplB2DPolyPolygon();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool B2DPolyPolygon::isClosed() const
|
bool B2DPolyPolygon::isClosed() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user