From ed6d83dfbc590b9782a0699f53bc36f548ae3ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Vajngerl?= Date: Sun, 15 May 2022 22:45:59 +0900 Subject: [PATCH] basegfx: move ImplB2DPolyPolygon inside basegfx namespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit also remove unneeded typedef Change-Id: I24fd31ff9da579260f1889ed87065f95dcfd1e23 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134377 Tested-by: Tomaž Vajngerl Reviewed-by: Tomaž Vajngerl --- basegfx/source/polygon/b2dpolypolygon.cxx | 6 +++--- include/basegfx/polygon/b2dpolypolygon.hxx | 11 ++--------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/basegfx/source/polygon/b2dpolypolygon.cxx b/basegfx/source/polygon/b2dpolypolygon.cxx index 4fd12bde4a10..4a81a82c4c71 100644 --- a/basegfx/source/polygon/b2dpolypolygon.cxx +++ b/basegfx/source/polygon/b2dpolypolygon.cxx @@ -27,6 +27,9 @@ #include #include +namespace basegfx +{ + class ImplB2DPolyPolygon { basegfx::B2DPolygonVector maPolygons; @@ -197,9 +200,6 @@ public: } }; -namespace basegfx -{ - static o3tl::cow_wrapper DEFAULT; B2DPolyPolygon::B2DPolyPolygon() : diff --git a/include/basegfx/polygon/b2dpolypolygon.hxx b/include/basegfx/polygon/b2dpolypolygon.hxx index 010815c8784e..f1420edef79a 100644 --- a/include/basegfx/polygon/b2dpolypolygon.hxx +++ b/include/basegfx/polygon/b2dpolypolygon.hxx @@ -28,22 +28,15 @@ #include #include -class ImplB2DPolyPolygon; - namespace basegfx { class B2DHomMatrix; -} + class ImplB2DPolyPolygon; -namespace basegfx -{ class BASEGFX_DLLPUBLIC B2DPolyPolygon { - public: - typedef o3tl::cow_wrapper< ImplB2DPolyPolygon > ImplType; - private: - ImplType mpPolyPolygon; + o3tl::cow_wrapper mpPolyPolygon; public: B2DPolyPolygon();