diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-15 18:28:16 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-15 18:28:16 +0200 |
commit | 304f50684d3ac08e973fd27e6acf3e821394d164 (patch) | |
tree | 7f71591b7d69e80f70768e0f66ba3965bee37d89 /drawinglayer | |
parent | test pre 1.4.0 hunspell (diff) | |
download | core-304f50684d3ac08e973fd27e6acf3e821394d164.tar.gz core-304f50684d3ac08e973fd27e6acf3e821394d164.zip |
loplugin:refcounting
Change-Id: I4f696bdb7b37da5949182d522b0d3c6c41fdc756
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/qa/unit/border.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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 <drawinglayer/geometry/viewinformation2d.hxx> #include <drawinglayer/primitive2d/borderlineprimitive2d.hxx> #include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx> +#include <rtl/ref.hxx> 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<drawinglayer::primitive2d::BorderLinePrimitive2D> 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<std::size_t>(2), aContainer.size()); |