summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-19 13:52:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-20 09:14:43 +0200
commit34e8f52d51cbf2010d1ea61c78757b38d8392f74 (patch)
treeb719c0edd29d385e3a8c67f79f9f754c847b5b07 /canvas
parentb8e26ebe2c37640212ef663a483cddf1639af742 (diff)
loplugin:constparams in canvas
Change-Id: Id54bb9dca606dd91e2d3ad4b63b9af7593c601e0 Reviewed-on: https://gerrit.libreoffice.org/40202 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_canvashelper.cxx4
-rw-r--r--canvas/source/cairo/cairo_canvashelper.hxx2
-rw-r--r--canvas/source/cairo/cairo_canvashelper_text.cxx4
-rw-r--r--canvas/source/cairo/cairo_devicehelper.cxx2
-rw-r--r--canvas/source/cairo/cairo_devicehelper.hxx2
-rw-r--r--canvas/source/cairo/cairo_spritedevicehelper.cxx2
-rw-r--r--canvas/source/cairo/cairo_spritedevicehelper.hxx2
-rw-r--r--canvas/source/cairo/cairo_textlayout.cxx2
-rw-r--r--canvas/source/cairo/cairo_textlayout.hxx2
-rw-r--r--canvas/source/vcl/impltools.cxx2
-rw-r--r--canvas/source/vcl/impltools.hxx2
-rw-r--r--canvas/source/vcl/spritecanvashelper.cxx2
12 files changed, 14 insertions, 14 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index 5f0d9bd9db07..fd0e798b008f 100644
--- a/canvas/source/cairo/cairo_canvashelper.cxx
+++ b/canvas/source/cairo/cairo_canvashelper.cxx
@@ -344,7 +344,7 @@ namespace cairocanvas
return nTemp;
}
- static bool readAlpha( BitmapReadAccess* pAlphaReadAcc, long nY, const long nWidth, unsigned char* data, long nOff )
+ static bool readAlpha( BitmapReadAccess const * pAlphaReadAcc, long nY, const long nWidth, unsigned char* data, long nOff )
{
bool bIsAlpha = false;
long nX;
@@ -703,7 +703,7 @@ namespace cairocanvas
return uno::Sequence<double>();
}
- static cairo_pattern_t* patternFromParametricPolyPolygon( ::canvas::ParametricPolyPolygon& rPolygon )
+ static cairo_pattern_t* patternFromParametricPolyPolygon( ::canvas::ParametricPolyPolygon const & rPolygon )
{
cairo_pattern_t* pPattern = nullptr;
const ::canvas::ParametricPolyPolygon::Values aValues = rPolygon.getValues();
diff --git a/canvas/source/cairo/cairo_canvashelper.hxx b/canvas/source/cairo/cairo_canvashelper.hxx
index 1482d2bd8d5d..0773b59021f8 100644
--- a/canvas/source/cairo/cairo_canvashelper.hxx
+++ b/canvas/source/cairo/cairo_canvashelper.hxx
@@ -269,7 +269,7 @@ namespace cairocanvas
::cairo::SurfaceSharedPtr mpSurface;
::basegfx::B2ISize maSize;
- void clip_cairo_from_dev(::OutputDevice& rOutDev);
+ void clip_cairo_from_dev(::OutputDevice const & rOutDev);
};
diff --git a/canvas/source/cairo/cairo_canvashelper_text.cxx b/canvas/source/cairo/cairo_canvashelper_text.cxx
index c2a055e1154a..e26866913cf4 100644
--- a/canvas/source/cairo/cairo_canvashelper_text.cxx
+++ b/canvas/source/cairo/cairo_canvashelper_text.cxx
@@ -54,7 +54,7 @@ namespace cairocanvas
}
static bool
- setupFontTransform( ::OutputDevice& rOutDev,
+ setupFontTransform( ::OutputDevice const & rOutDev,
::Point& o_rPoint,
vcl::Font& io_rVCLFont,
const rendering::ViewState& rViewState,
@@ -202,7 +202,7 @@ namespace cairocanvas
}
//set the clip of the rOutDev to the cairo surface
- void CanvasHelper::clip_cairo_from_dev(::OutputDevice& rOutDev)
+ void CanvasHelper::clip_cairo_from_dev(::OutputDevice const & rOutDev)
{
vcl::Region aRegion(rOutDev.GetClipRegion());
if (!aRegion.IsEmpty() && !aRegion.IsNull())
diff --git a/canvas/source/cairo/cairo_devicehelper.cxx b/canvas/source/cairo/cairo_devicehelper.cxx
index a54bc83e42bc..9e059646c6eb 100644
--- a/canvas/source/cairo/cairo_devicehelper.cxx
+++ b/canvas/source/cairo/cairo_devicehelper.cxx
@@ -258,7 +258,7 @@ namespace cairocanvas
return SurfaceSharedPtr();
}
- SurfaceSharedPtr DeviceHelper::createSurface( BitmapSystemData& rData, const Size& rSize )
+ SurfaceSharedPtr DeviceHelper::createSurface( BitmapSystemData const & rData, const Size& rSize )
{
if (mpRefDevice)
return mpRefDevice->CreateBitmapSurface(rData, rSize);
diff --git a/canvas/source/cairo/cairo_devicehelper.hxx b/canvas/source/cairo/cairo_devicehelper.hxx
index c0e7449416c3..c98ded4d7bc4 100644
--- a/canvas/source/cairo/cairo_devicehelper.hxx
+++ b/canvas/source/cairo/cairo_devicehelper.hxx
@@ -93,7 +93,7 @@ namespace cairocanvas
OutputDevice* getOutputDevice() const { return mpRefDevice; }
const ::cairo::SurfaceSharedPtr& getSurface() { return mpSurface; }
::cairo::SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, int aContent );
- ::cairo::SurfaceSharedPtr createSurface( BitmapSystemData& rData, const Size& rSize );
+ ::cairo::SurfaceSharedPtr createSurface( BitmapSystemData const & rData, const Size& rSize );
protected:
/** init helper
diff --git a/canvas/source/cairo/cairo_spritedevicehelper.cxx b/canvas/source/cairo/cairo_spritedevicehelper.cxx
index e5c2d2c5d29d..3d7a6fd45872 100644
--- a/canvas/source/cairo/cairo_spritedevicehelper.cxx
+++ b/canvas/source/cairo/cairo_spritedevicehelper.cxx
@@ -137,7 +137,7 @@ namespace cairocanvas
return SurfaceSharedPtr();
}
- SurfaceSharedPtr SpriteDeviceHelper::createSurface( BitmapSystemData& rData, const Size& rSize )
+ SurfaceSharedPtr SpriteDeviceHelper::createSurface( BitmapSystemData const & rData, const Size& rSize )
{
OutputDevice *pDevice = getOutputDevice();
if (pDevice)
diff --git a/canvas/source/cairo/cairo_spritedevicehelper.hxx b/canvas/source/cairo/cairo_spritedevicehelper.hxx
index 2cd748f27550..86eaa34326e5 100644
--- a/canvas/source/cairo/cairo_spritedevicehelper.hxx
+++ b/canvas/source/cairo/cairo_spritedevicehelper.hxx
@@ -63,7 +63,7 @@ namespace cairocanvas
const ::cairo::SurfaceSharedPtr& getBufferSurface() { return mpBufferSurface; }
::cairo::SurfaceSharedPtr getWindowSurface();
::cairo::SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, int aContent );
- ::cairo::SurfaceSharedPtr createSurface( BitmapSystemData& rData, const Size& rSize );
+ ::cairo::SurfaceSharedPtr createSurface( BitmapSystemData const & rData, const Size& rSize );
const ::basegfx::B2ISize& getSizePixel() { return maSize; }
void flush();
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx
index 09371f862a04..e0e91053ac25 100644
--- a/canvas/source/cairo/cairo_textlayout.cxx
+++ b/canvas/source/cairo/cairo_textlayout.cxx
@@ -295,7 +295,7 @@ namespace cairocanvas
*
* @return true, if successful
**/
- bool TextLayout::draw( CairoSharedPtr& pSCairo,
+ bool TextLayout::draw( CairoSharedPtr const & pSCairo,
OutputDevice& rOutDev,
const Point& rOutpos,
const rendering::ViewState& viewState,
diff --git a/canvas/source/cairo/cairo_textlayout.hxx b/canvas/source/cairo/cairo_textlayout.hxx
index b3db7803b2fa..aa02296d6f44 100644
--- a/canvas/source/cairo/cairo_textlayout.hxx
+++ b/canvas/source/cairo/cairo_textlayout.hxx
@@ -82,7 +82,7 @@ namespace cairocanvas
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
- bool draw( ::cairo::CairoSharedPtr& pSCairo,
+ bool draw( ::cairo::CairoSharedPtr const & pSCairo,
OutputDevice& rOutDev,
const Point& rOutpos,
const css::rendering::ViewState& viewState,
diff --git a/canvas/source/vcl/impltools.cxx b/canvas/source/vcl/impltools.cxx
index 3689ccedc6c7..99e42fd46557 100644
--- a/canvas/source/vcl/impltools.cxx
+++ b/canvas/source/vcl/impltools.cxx
@@ -99,7 +99,7 @@ namespace vclcanvas
vcl::Font& io_rVCLFont,
const rendering::ViewState& rViewState,
const rendering::RenderState& rRenderState,
- ::OutputDevice& rOutDev )
+ ::OutputDevice const & rOutDev )
{
::basegfx::B2DHomMatrix aMatrix;
diff --git a/canvas/source/vcl/impltools.hxx b/canvas/source/vcl/impltools.hxx
index d07a841ea754..b69067a7cf5c 100644
--- a/canvas/source/vcl/impltools.hxx
+++ b/canvas/source/vcl/impltools.hxx
@@ -89,7 +89,7 @@ namespace vclcanvas
vcl::Font& io_rVCLFont,
const css::rendering::ViewState& viewState,
const css::rendering::RenderState& renderState,
- ::OutputDevice& rOutDev );
+ ::OutputDevice const & rOutDev );
/** Predicate, to determine whether polygon is actually an axis-aligned rectangle
diff --git a/canvas/source/vcl/spritecanvashelper.cxx b/canvas/source/vcl/spritecanvashelper.cxx
index 59efaa6deff8..79a3cd9047af 100644
--- a/canvas/source/vcl/spritecanvashelper.cxx
+++ b/canvas/source/vcl/spritecanvashelper.cxx
@@ -66,7 +66,7 @@ namespace vclcanvas
}
void repaintBackground( OutputDevice& rOutDev,
- OutputDevice& rBackBuffer,
+ OutputDevice const & rBackBuffer,
const ::basegfx::B2DRange& rArea )
{
const ::Point& rPos( vcl::unotools::pointFromB2DPoint( rArea.getMinimum()) );