summaryrefslogtreecommitdiff
path: root/canvas/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-09-12 13:10:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-14 06:40:30 +0000
commit1e49e33c26950b606714c0dafb26cbcb2aeb3877 (patch)
treee510fd3a5babf1712d136b866120bea4dd5b8f1a /canvas/source
parente1822c809b137859382139aace0c08be4547c157 (diff)
loplugin:constantparam in chart2..connectivity
Change-Id: Ic9e1bd36a11c7148fa7595a2b6c6de9bd7a8653d Reviewed-on: https://gerrit.libreoffice.org/28834 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas/source')
-rw-r--r--canvas/source/cairo/cairo_cachedbitmap.cxx2
-rw-r--r--canvas/source/tools/cachedprimitivebase.cxx9
-rw-r--r--canvas/source/vcl/cachedbitmap.cxx2
3 files changed, 5 insertions, 8 deletions
diff --git a/canvas/source/cairo/cairo_cachedbitmap.cxx b/canvas/source/cairo/cairo_cachedbitmap.cxx
index 2528a68f78c0..13e88f15b78f 100644
--- a/canvas/source/cairo/cairo_cachedbitmap.cxx
+++ b/canvas/source/cairo/cairo_cachedbitmap.cxx
@@ -38,7 +38,7 @@ namespace cairocanvas
const rendering::ViewState& rUsedViewState,
const rendering::RenderState& rUsedRenderState,
const uno::Reference< rendering::XCanvas >& rTarget ) :
- CachedPrimitiveBase( rUsedViewState, rTarget, true ),
+ CachedPrimitiveBase( rUsedViewState, rTarget ),
mpSurface( pSurface ),
maRenderState( rUsedRenderState )
{}
diff --git a/canvas/source/tools/cachedprimitivebase.cxx b/canvas/source/tools/cachedprimitivebase.cxx
index 2a4639aa1284..e185bf969a0e 100644
--- a/canvas/source/tools/cachedprimitivebase.cxx
+++ b/canvas/source/tools/cachedprimitivebase.cxx
@@ -32,12 +32,10 @@ using namespace ::com::sun::star;
namespace canvas
{
CachedPrimitiveBase::CachedPrimitiveBase( const rendering::ViewState& rUsedViewState,
- const uno::Reference< rendering::XCanvas >& rTarget,
- bool bFailForChangedViewTransform ) :
+ const uno::Reference< rendering::XCanvas >& rTarget ) :
CachedPrimitiveBase_Base( m_aMutex ),
maUsedViewState( rUsedViewState ),
- mxTarget( rTarget ),
- mbFailForChangedViewTransform( bFailForChangedViewTransform )
+ mxTarget( rTarget )
{
}
@@ -65,8 +63,7 @@ namespace canvas
const bool bSameViewTransforms( aUsedTransformation == aNewTransformation );
- if( mbFailForChangedViewTransform &&
- !bSameViewTransforms )
+ if( !bSameViewTransforms )
{
// differing transformations, don't try to draft the
// output, just plain fail here.
diff --git a/canvas/source/vcl/cachedbitmap.cxx b/canvas/source/vcl/cachedbitmap.cxx
index 72ced6762629..eb94333c707d 100644
--- a/canvas/source/vcl/cachedbitmap.cxx
+++ b/canvas/source/vcl/cachedbitmap.cxx
@@ -40,7 +40,7 @@ namespace vclcanvas
const rendering::ViewState& rUsedViewState,
const rendering::RenderState& rUsedRenderState,
const uno::Reference< rendering::XCanvas >& rTarget ) :
- CachedPrimitiveBase( rUsedViewState, rTarget, true ),
+ CachedPrimitiveBase( rUsedViewState, rTarget ),
mpGraphicObject( rGraphicObject ),
maRenderState(rUsedRenderState),
maPoint( rPoint ),