diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-05-15 22:45:59 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-05-16 17:09:22 +0200 |
commit | ed6d83dfbc590b9782a0699f53bc36f548ae3ec2 (patch) | |
tree | 263b42e68404ec0b4129ece83fec9139ba567203 | |
parent | 9e2391561d80cc06b7c1959f58ce4b70aca2a444 (diff) |
basegfx: move ImplB2DPolyPolygon inside basegfx namespace
also remove unneeded typedef
Change-Id: I24fd31ff9da579260f1889ed87065f95dcfd1e23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134377
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r-- | basegfx/source/polygon/b2dpolypolygon.cxx | 6 | ||||
-rw-r--r-- | 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 <basegfx/matrix/b2dhommatrix.hxx> #include <basegfx/utils/systemdependentdata.hxx> +namespace basegfx +{ + class ImplB2DPolyPolygon { basegfx::B2DPolygonVector maPolygons; @@ -197,9 +200,6 @@ public: } }; -namespace basegfx -{ - static o3tl::cow_wrapper<ImplB2DPolyPolygon> 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 <basegfx/basegfxdllapi.h> #include <basegfx/polygon/b2dpolygon.hxx> -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<ImplB2DPolyPolygon> mpPolyPolygon; public: B2DPolyPolygon(); |