tdf#126788 use singleton to avoid initial allocation

Change-Id: I55011cdd3e6c457c6ab91d90579ace3524a9889d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142029
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2022-10-30 08:01:00 +02:00
parent b3329c10cc
commit 24a2c65e7e

View file

@ -1075,7 +1075,10 @@ public:
namespace basegfx
{
B2DPolygon::B2DPolygon() = default;
static o3tl::cow_wrapper<ImplB2DPolygon> DEFAULT;
B2DPolygon::B2DPolygon()
: mpPolygon(DEFAULT) {}
B2DPolygon::B2DPolygon(std::initializer_list<basegfx::B2DPoint> aPoints)
{