diff options
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/matrix/b2dhommatrix.cxx | 4 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dpolypolygon.cxx | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/basegfx/source/matrix/b2dhommatrix.cxx b/basegfx/source/matrix/b2dhommatrix.cxx index 89088e8ebdbf..badda594c9de 100644 --- a/basegfx/source/matrix/b2dhommatrix.cxx +++ b/basegfx/source/matrix/b2dhommatrix.cxx @@ -31,7 +31,9 @@ namespace basegfx { }; - B2DHomMatrix::B2DHomMatrix() = default; + static o3tl::cow_wrapper<Impl2DHomMatrix> DEFAULT; + + B2DHomMatrix::B2DHomMatrix() : mpImpl(DEFAULT) {} B2DHomMatrix::B2DHomMatrix(const B2DHomMatrix&) = default; diff --git a/basegfx/source/polygon/b2dpolypolygon.cxx b/basegfx/source/polygon/b2dpolypolygon.cxx index dcd6133abc4a..36c221eeb106 100644 --- a/basegfx/source/polygon/b2dpolypolygon.cxx +++ b/basegfx/source/polygon/b2dpolypolygon.cxx @@ -200,7 +200,10 @@ public: namespace basegfx { - B2DPolyPolygon::B2DPolyPolygon() = default; + static o3tl::cow_wrapper<ImplB2DPolyPolygon> DEFAULT; + + B2DPolyPolygon::B2DPolyPolygon() : + mpPolyPolygon(DEFAULT) {} B2DPolyPolygon::B2DPolyPolygon(const B2DPolyPolygon&) = default; |