[Libreoffice-commits] core.git: canvas/inc canvas/source
Noel (via logerrit)
logerrit at kemper.freedesktop.org
Mon Mar 1 18:34:29 UTC 2021
canvas/inc/parametricpolypolygon.hxx | 9 +++++----
canvas/source/tools/parametricpolypolygon.cxx | 8 ++++----
2 files changed, 9 insertions(+), 8 deletions(-)
New commits:
commit ee7368f6289ffc46425e4f3db1f7b40b7e6e089e
Author: Noel <noel.grandin at collabora.co.uk>
AuthorDate: Mon Mar 1 13:37:02 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Mar 1 19:33:47 2021 +0100
loplugin:refcounting in canvas
Change-Id: I7807e2e7fa7f9a68d36c103d8b1dba708350f8aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111745
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/canvas/inc/parametricpolypolygon.hxx b/canvas/inc/parametricpolypolygon.hxx
index 15957b58f960..089c42e76f57 100644
--- a/canvas/inc/parametricpolypolygon.hxx
+++ b/canvas/inc/parametricpolypolygon.hxx
@@ -26,6 +26,7 @@
#include <basegfx/polygon/b2dpolygon.hxx>
#include <canvas/canvastoolsdllapi.h>
+#include <rtl/ref.hxx>
namespace com::sun::star::rendering { class XGraphicDevice; }
@@ -85,7 +86,7 @@ namespace canvas
};
static css::uno::Sequence< OUString > getAvailableServiceNames();
- static ParametricPolyPolygon* create(
+ static rtl::Reference<ParametricPolyPolygon> create(
const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice,
std::u16string_view rServiceName,
const css::uno::Sequence< css::uno::Any >& rArgs );
@@ -112,16 +113,16 @@ namespace canvas
ParametricPolyPolygon(const ParametricPolyPolygon&) = delete;
ParametricPolyPolygon& operator=( const ParametricPolyPolygon& ) = delete;
- static ParametricPolyPolygon* createLinearHorizontalGradient( const css::uno::Reference<
+ static rtl::Reference<ParametricPolyPolygon> createLinearHorizontalGradient( const css::uno::Reference<
css::rendering::XGraphicDevice >& rDevice,
const css::uno::Sequence< css::uno::Sequence< double > >& colors,
const css::uno::Sequence< double >& stops );
- static ParametricPolyPolygon* createEllipticalGradient( const css::uno::Reference<
+ static rtl::Reference<ParametricPolyPolygon> createEllipticalGradient( const css::uno::Reference<
css::rendering::XGraphicDevice >& rDevice,
const css::uno::Sequence< css::uno::Sequence< double > >& colors,
const css::uno::Sequence< double >& stops,
double fAspect );
- static ParametricPolyPolygon* createRectangularGradient( const css::uno::Reference<
+ static rtl::Reference<ParametricPolyPolygon> createRectangularGradient( const css::uno::Reference<
css::rendering::XGraphicDevice >& rDevice,
const css::uno::Sequence< css::uno::Sequence< double > >& colors,
const css::uno::Sequence< double >& stops,
diff --git a/canvas/source/tools/parametricpolypolygon.cxx b/canvas/source/tools/parametricpolypolygon.cxx
index bd62b1b5568a..c75d84348690 100644
--- a/canvas/source/tools/parametricpolypolygon.cxx
+++ b/canvas/source/tools/parametricpolypolygon.cxx
@@ -39,7 +39,7 @@ namespace canvas
"RectangularGradient"};
}
- ParametricPolyPolygon* ParametricPolyPolygon::create(
+ rtl::Reference<ParametricPolyPolygon> ParametricPolyPolygon::create(
const uno::Reference< rendering::XGraphicDevice >& rDevice,
std::u16string_view rServiceName,
const uno::Sequence< uno::Any >& rArgs )
@@ -110,7 +110,7 @@ namespace canvas
return nullptr;
}
- ParametricPolyPolygon* ParametricPolyPolygon::createLinearHorizontalGradient(
+ rtl::Reference<ParametricPolyPolygon> ParametricPolyPolygon::createLinearHorizontalGradient(
const uno::Reference< rendering::XGraphicDevice >& rDevice,
const uno::Sequence< uno::Sequence< double > >& colors,
const uno::Sequence< double >& stops )
@@ -120,7 +120,7 @@ namespace canvas
return new ParametricPolyPolygon( rDevice, GradientType::Linear, colors, stops );
}
- ParametricPolyPolygon* ParametricPolyPolygon::createEllipticalGradient(
+ rtl::Reference<ParametricPolyPolygon> ParametricPolyPolygon::createEllipticalGradient(
const uno::Reference< rendering::XGraphicDevice >& rDevice,
const uno::Sequence< uno::Sequence< double > >& colors,
const uno::Sequence< double >& stops,
@@ -136,7 +136,7 @@ namespace canvas
colors, stops, fAspectRatio );
}
- ParametricPolyPolygon* ParametricPolyPolygon::createRectangularGradient( const uno::Reference< rendering::XGraphicDevice >& rDevice,
+ rtl::Reference<ParametricPolyPolygon> ParametricPolyPolygon::createRectangularGradient( const uno::Reference< rendering::XGraphicDevice >& rDevice,
const uno::Sequence< uno::Sequence< double > >& colors,
const uno::Sequence< double >& stops,
double fAspectRatio )
More information about the Libreoffice-commits
mailing list