From d7d9edb27e0e512fac6b5618bfd369cafc6edc1e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 11 Jan 2018 16:01:44 +0200 Subject: loplugin:useuniqueptr in PolyPolygon Also - convert to o3tl::cow_wrapper - drop the second param to the constructor and just let vector use it's own resize logic - bump MAX_POLYGONS from 0x3FF0 to 0xffff so that the ios2met filter can load it's files properly. Change-Id: I9db19e4f7b4f946e801ea07c31d2d0ded7837a0e Reviewed-on: https://gerrit.libreoffice.org/47789 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- svx/source/dialog/contwnd.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') diff --git a/svx/source/dialog/contwnd.cxx b/svx/source/dialog/contwnd.cxx index 9ae5d524a1fb..bcaff23e30e0 100644 --- a/svx/source/dialog/contwnd.cxx +++ b/svx/source/dialog/contwnd.cxx @@ -235,7 +235,7 @@ void ContourWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Recta if (aWorkRect.Left() != aWorkRect.Right() && aWorkRect.Top() != aWorkRect.Bottom()) { - tools::PolyPolygon _aPolyPoly(2, 2); + tools::PolyPolygon _aPolyPoly(2); rTarget.Push(PushFlags::FILLCOLOR); _aPolyPoly.Insert(tools::Rectangle(Point(), GetGraphicSize())); _aPolyPoly.Insert(aWorkRect); -- cgit