diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-14 14:33:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-14 19:11:22 +0200 |
commit | 1aaf5d44dceecc13a3bc8e08c13d0b2ba278c462 (patch) | |
tree | 0d6898446a62982b4abc370a1d845d7080c70843 /include | |
parent | c6eb8713438d1ba791fc858c8dc6e3d4d6583e0a (diff) |
make B2DPolyPolygon thread-safe
which is cheaper than copying it when querying from UnoPolyPolygon
Change-Id: If4661dfdff7e277d5ef25a8f0c937e549f8be9f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137080
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/basegfx/polygon/b2dpolypolygon.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/basegfx/polygon/b2dpolypolygon.hxx b/include/basegfx/polygon/b2dpolypolygon.hxx index 474c0cbdb40f..68f1b0d6a619 100644 --- a/include/basegfx/polygon/b2dpolypolygon.hxx +++ b/include/basegfx/polygon/b2dpolypolygon.hxx @@ -36,7 +36,7 @@ namespace basegfx class BASEGFX_DLLPUBLIC B2DPolyPolygon { private: - o3tl::cow_wrapper<ImplB2DPolyPolygon> mpPolyPolygon; + o3tl::cow_wrapper<ImplB2DPolyPolygon, o3tl::ThreadSafeRefCountingPolicy> mpPolyPolygon; public: B2DPolyPolygon(); |