diff options
Diffstat (limited to 'canvas/source/tools/parametricpolypolygon.cxx')
-rw-r--r-- | canvas/source/tools/parametricpolypolygon.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/canvas/source/tools/parametricpolypolygon.cxx b/canvas/source/tools/parametricpolypolygon.cxx index 96d8fc7f07da..ca42d7fe36f7 100644 --- a/canvas/source/tools/parametricpolypolygon.cxx +++ b/canvas/source/tools/parametricpolypolygon.cxx @@ -27,6 +27,7 @@ #include <com/sun/star/rendering/XGraphicDevice.hpp> #include <parametricpolypolygon.hxx> +#include <utility> using namespace ::com::sun::star; @@ -180,7 +181,7 @@ namespace canvas OUString SAL_CALL ParametricPolyPolygon::getImplementationName( ) { - return "Canvas::ParametricPolyPolygon"; + return u"Canvas::ParametricPolyPolygon"_ustr; } sal_Bool SAL_CALL ParametricPolyPolygon::supportsService( const OUString& ServiceName ) @@ -190,20 +191,20 @@ namespace canvas uno::Sequence< OUString > SAL_CALL ParametricPolyPolygon::getSupportedServiceNames( ) { - return { "com.sun.star.rendering.ParametricPolyPolygon" }; + return { u"com.sun.star.rendering.ParametricPolyPolygon"_ustr }; } ParametricPolyPolygon::~ParametricPolyPolygon() { } - ParametricPolyPolygon::ParametricPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& rDevice, + ParametricPolyPolygon::ParametricPolyPolygon( uno::Reference< rendering::XGraphicDevice > xDevice, const ::basegfx::B2DPolygon& rGradientPoly, GradientType eType, const uno::Sequence< uno::Sequence< double > >& rColors, const uno::Sequence< double >& rStops, double nAspectRatio ) : - mxDevice( rDevice ), + mxDevice(std::move( xDevice )), maValues( rGradientPoly, rColors, rStops, @@ -212,11 +213,11 @@ namespace canvas { } - ParametricPolyPolygon::ParametricPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& rDevice, + ParametricPolyPolygon::ParametricPolyPolygon( uno::Reference< rendering::XGraphicDevice > xDevice, GradientType eType, const uno::Sequence< uno::Sequence< double > >& rColors, const uno::Sequence< double >& rStops ) : - mxDevice( rDevice ), + mxDevice(std::move( xDevice )), maValues( ::basegfx::B2DPolygon(), rColors, rStops, @@ -227,8 +228,6 @@ namespace canvas ParametricPolyPolygon::Values ParametricPolyPolygon::getValues() const { - std::unique_lock aGuard( m_aMutex ); - return maValues; } |