From 304f50684d3ac08e973fd27e6acf3e821394d164 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 15 Apr 2016 18:28:16 +0200 Subject: loplugin:refcounting Change-Id: I4f696bdb7b37da5949182d522b0d3c6c41fdc756 --- drawinglayer/qa/unit/border.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'drawinglayer/qa') diff --git a/drawinglayer/qa/unit/border.cxx b/drawinglayer/qa/unit/border.cxx index 40fa12280e3a..6f49a2447b77 100644 --- a/drawinglayer/qa/unit/border.cxx +++ b/drawinglayer/qa/unit/border.cxx @@ -17,6 +17,7 @@ #include #include #include +#include using namespace com::sun::star; @@ -51,11 +52,11 @@ void DrawinglayerBorderTest::testDoubleDecompositionSolid() basegfx::BColor aColorGap; bool bHasGapColor = false; sal_Int16 nStyle = table::BorderLineStyle::DOUBLE; - drawinglayer::primitive2d::BorderLinePrimitive2D aBorder(aStart, aEnd, fLeftWidth, fDistance, fRightWidth, fExtendLeftStart, fExtendLeftEnd, fExtendRightStart, fExtendRightEnd, aColorRight, aColorLeft, aColorGap, bHasGapColor, nStyle); + rtl::Reference aBorder(new drawinglayer::primitive2d::BorderLinePrimitive2D(aStart, aEnd, fLeftWidth, fDistance, fRightWidth, fExtendLeftStart, fExtendLeftEnd, fExtendRightStart, fExtendRightEnd, aColorRight, aColorLeft, aColorGap, bHasGapColor, nStyle)); // Decompose it into polygons. drawinglayer::geometry::ViewInformation2D aView; - drawinglayer::primitive2d::Primitive2DContainer aContainer = aBorder.get2DDecomposition(aView); + drawinglayer::primitive2d::Primitive2DContainer aContainer = aBorder->get2DDecomposition(aView); // Make sure it results in two borders as it's a double one. CPPUNIT_ASSERT_EQUAL(static_cast(2), aContainer.size()); -- cgit