diff options
Diffstat (limited to 'canvas/source/tools')
-rw-r--r-- | canvas/source/tools/cachedprimitivebase.cxx | 9 | ||||
-rw-r--r-- | canvas/source/tools/elapsedtime.cxx | 5 | ||||
-rw-r--r-- | canvas/source/tools/pagemanager.hxx | 5 | ||||
-rw-r--r-- | canvas/source/tools/parametricpolypolygon.cxx | 9 | ||||
-rw-r--r-- | canvas/source/tools/spriteredrawmanager.cxx | 5 | ||||
-rw-r--r-- | canvas/source/tools/surface.cxx | 9 | ||||
-rw-r--r-- | canvas/source/tools/surface.hxx | 4 | ||||
-rw-r--r-- | canvas/source/tools/surfaceproxy.cxx | 9 | ||||
-rw-r--r-- | canvas/source/tools/surfaceproxy.hxx | 4 |
9 files changed, 33 insertions, 26 deletions
diff --git a/canvas/source/tools/cachedprimitivebase.cxx b/canvas/source/tools/cachedprimitivebase.cxx index 056796fcde98..652e9c900613 100644 --- a/canvas/source/tools/cachedprimitivebase.cxx +++ b/canvas/source/tools/cachedprimitivebase.cxx @@ -25,17 +25,18 @@ #include <cppuhelper/supportsservice.hxx> #include <base/cachedprimitivebase.hxx> +#include <utility> using namespace ::com::sun::star; namespace canvas { - CachedPrimitiveBase::CachedPrimitiveBase( const rendering::ViewState& rUsedViewState, - const uno::Reference< rendering::XCanvas >& rTarget ) : + CachedPrimitiveBase::CachedPrimitiveBase( rendering::ViewState aUsedViewState, + uno::Reference< rendering::XCanvas > xTarget ) : CachedPrimitiveBase_Base( m_aMutex ), - maUsedViewState( rUsedViewState ), - mxTarget( rTarget ) + maUsedViewState(std::move( aUsedViewState )), + mxTarget(std::move( xTarget )) { } diff --git a/canvas/source/tools/elapsedtime.cxx b/canvas/source/tools/elapsedtime.cxx index 84a6ed5c48bd..46167dd9a851 100644 --- a/canvas/source/tools/elapsedtime.cxx +++ b/canvas/source/tools/elapsedtime.cxx @@ -22,6 +22,7 @@ #include <canvas/elapsedtime.hxx> #include <tools/time.hxx> +#include <utility> namespace canvas::tools { @@ -41,8 +42,8 @@ ElapsedTime::ElapsedTime() } ElapsedTime::ElapsedTime( - std::shared_ptr<ElapsedTime> const & pTimeBase ) - : m_pTimeBase( pTimeBase ), + std::shared_ptr<ElapsedTime> pTimeBase ) + : m_pTimeBase(std::move( pTimeBase )), m_fLastQueriedTime( 0.0 ), m_fStartTime( getCurrentTime() ), m_fFrozenTime( 0.0 ), diff --git a/canvas/source/tools/pagemanager.hxx b/canvas/source/tools/pagemanager.hxx index a5d905ef726c..57de912a12ba 100644 --- a/canvas/source/tools/pagemanager.hxx +++ b/canvas/source/tools/pagemanager.hxx @@ -21,6 +21,7 @@ #include <basegfx/vector/b2isize.hxx> #include <rendering/irendermodule.hxx> +#include <utility> #include "page.hxx" @@ -30,8 +31,8 @@ namespace canvas class PageManager { public: - explicit PageManager(const std::shared_ptr<canvas::IRenderModule>& rRenderModule) - : mpRenderModule(rRenderModule) + explicit PageManager(std::shared_ptr<canvas::IRenderModule> xRenderModule) + : mpRenderModule(std::move(xRenderModule)) { } diff --git a/canvas/source/tools/parametricpolypolygon.cxx b/canvas/source/tools/parametricpolypolygon.cxx index 96d8fc7f07da..acad3b58b7d6 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; @@ -197,13 +198,13 @@ namespace canvas { } - 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, diff --git a/canvas/source/tools/spriteredrawmanager.cxx b/canvas/source/tools/spriteredrawmanager.cxx index 25ec64254acc..d60646484056 100644 --- a/canvas/source/tools/spriteredrawmanager.cxx +++ b/canvas/source/tools/spriteredrawmanager.cxx @@ -28,6 +28,7 @@ #include <spriteredrawmanager.hxx> #include <boost/range/adaptor/reversed.hpp> +#include <utility> namespace canvas { @@ -43,8 +44,8 @@ namespace canvas class SpriteTracer { public: - explicit SpriteTracer( const Sprite::Reference& rAffectedSprite ) : - mpAffectedSprite(rAffectedSprite), + explicit SpriteTracer( Sprite::Reference rAffectedSprite ) : + mpAffectedSprite(std::move(rAffectedSprite)), mbIsMove( false ), mbIsGenericUpdate( false ) { diff --git a/canvas/source/tools/surface.cxx b/canvas/source/tools/surface.cxx index 9769931a636e..9dfb0f7c9d36 100644 --- a/canvas/source/tools/surface.cxx +++ b/canvas/source/tools/surface.cxx @@ -22,17 +22,18 @@ #include <basegfx/matrix/b2dhommatrixtools.hxx> #include <basegfx/polygon/b2dpolygonclipper.hxx> #include <comphelper/scopeguard.hxx> +#include <utility> #include "surface.hxx" namespace canvas { - Surface::Surface( const PageManagerSharedPtr& rPageManager, - const std::shared_ptr<IColorBuffer>& rColorBuffer, + Surface::Surface( PageManagerSharedPtr rPageManager, + std::shared_ptr<IColorBuffer> xColorBuffer, const ::basegfx::B2IPoint& rPos, const ::basegfx::B2ISize& rSize ) : - mpColorBuffer(rColorBuffer), - mpPageManager(rPageManager), + mpColorBuffer(std::move(xColorBuffer)), + mpPageManager(std::move(rPageManager)), maSourceOffset(rPos), maSize(rSize), mbIsDirty(true) diff --git a/canvas/source/tools/surface.hxx b/canvas/source/tools/surface.hxx index 25b859ba416b..e78925292f27 100644 --- a/canvas/source/tools/surface.hxx +++ b/canvas/source/tools/surface.hxx @@ -41,8 +41,8 @@ namespace canvas { public: - Surface( const PageManagerSharedPtr& rPageManager, - const std::shared_ptr<IColorBuffer>& rColorBuffer, + Surface( PageManagerSharedPtr xPageManager, + std::shared_ptr<IColorBuffer> xColorBuffer, const ::basegfx::B2IPoint& rPos, const ::basegfx::B2ISize& rSize ); ~Surface(); diff --git a/canvas/source/tools/surfaceproxy.cxx b/canvas/source/tools/surfaceproxy.cxx index 46b3d2cd3255..3a1bf4fe3f21 100644 --- a/canvas/source/tools/surfaceproxy.cxx +++ b/canvas/source/tools/surfaceproxy.cxx @@ -23,15 +23,16 @@ #include <basegfx/polygon/b2dpolypolygon.hxx> #include <basegfx/polygon/b2dpolygontriangulator.hxx> #include <basegfx/polygon/b2dpolypolygontools.hxx> +#include <utility> #include "surfaceproxy.hxx" namespace canvas { - SurfaceProxy::SurfaceProxy( const std::shared_ptr<canvas::IColorBuffer>& pBuffer, - const PageManagerSharedPtr& pPageManager ) : - mpPageManager( pPageManager ), - mpBuffer( pBuffer ) + SurfaceProxy::SurfaceProxy( std::shared_ptr<canvas::IColorBuffer> xBuffer, + PageManagerSharedPtr xPageManager ) : + mpPageManager(std::move( xPageManager )), + mpBuffer(std::move( xBuffer )) { const ::basegfx::B2ISize aImageSize(mpBuffer->getWidth(),mpBuffer->getHeight()); const ::basegfx::B2ISize aPageSize(mpPageManager->getPageSize()); diff --git a/canvas/source/tools/surfaceproxy.hxx b/canvas/source/tools/surfaceproxy.hxx index 5c620d3e3bc8..72841d754e0a 100644 --- a/canvas/source/tools/surfaceproxy.hxx +++ b/canvas/source/tools/surfaceproxy.hxx @@ -38,8 +38,8 @@ namespace canvas { public: - SurfaceProxy( const std::shared_ptr<canvas::IColorBuffer>& pBuffer, - const PageManagerSharedPtr &pPageManager ); + SurfaceProxy( std::shared_ptr<canvas::IColorBuffer> xBuffer, + PageManagerSharedPtr xPageManager ); // ISurfaceProxy interface virtual void setColorBufferDirty() override; |