summaryrefslogtreecommitdiff
path: root/svx/source/unodraw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-30 11:24:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-30 11:58:48 +0100
commit6f45913394a931f2053c7b1cba52bdfd79a3093b (patch)
treeee20b3107f4d6dcee01bc8226b5491093d0a9f39 /svx/source/unodraw
parentc7660cc543903c26c30d22e70e42deab9573c94d (diff)
loplugin:constantparam in svx
Change-Id: Ifaad1083b1561b2bd908e798e06fbff8bbabbe60 Reviewed-on: https://gerrit.libreoffice.org/44048 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r--svx/source/unodraw/UnoGraphicExporter.cxx4
-rw-r--r--svx/source/unodraw/UnoGraphicExporter.hxx2
-rw-r--r--svx/source/unodraw/tableshape.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx
index 6da4491a778e..2188da8154b5 100644
--- a/svx/source/unodraw/UnoGraphicExporter.cxx
+++ b/svx/source/unodraw/UnoGraphicExporter.cxx
@@ -1238,7 +1238,7 @@ Sequence< OUString > SAL_CALL GraphicExporter::getSupportedMimeTypeNames( )
}
-Graphic SvxGetGraphicForShape( SdrObject& rShape, bool bVector )
+Graphic SvxGetGraphicForShape( SdrObject& rShape )
{
Graphic aGraphic;
try
@@ -1247,7 +1247,7 @@ Graphic SvxGetGraphicForShape( SdrObject& rShape, bool bVector )
Reference< XComponent > xComp( rShape.getUnoShape(), UNO_QUERY_THROW );
xExporter->setSourceDocument( xComp );
ExportSettings aSettings( rShape.GetModel() );
- xExporter->GetGraphic( aSettings, aGraphic, bVector );
+ xExporter->GetGraphic( aSettings, aGraphic, true/*bVector*/ );
}
catch( Exception& )
{
diff --git a/svx/source/unodraw/UnoGraphicExporter.hxx b/svx/source/unodraw/UnoGraphicExporter.hxx
index dafb10e3c6c7..cbfd3f2f7d84 100644
--- a/svx/source/unodraw/UnoGraphicExporter.hxx
+++ b/svx/source/unodraw/UnoGraphicExporter.hxx
@@ -26,7 +26,7 @@
class SdrObject;
-Graphic SvxGetGraphicForShape( SdrObject& rShape, bool bVector );
+Graphic SvxGetGraphicForShape( SdrObject& rShape );
#endif
diff --git a/svx/source/unodraw/tableshape.cxx b/svx/source/unodraw/tableshape.cxx
index 2529334735d0..451cf396750e 100644
--- a/svx/source/unodraw/tableshape.cxx
+++ b/svx/source/unodraw/tableshape.cxx
@@ -124,7 +124,7 @@ bool SvxTableShape::getPropertyValueImpl(
{
if( mpObj.is() )
{
- Graphic aGraphic( SvxGetGraphicForShape( *mpObj.get(), true ) );
+ Graphic aGraphic( SvxGetGraphicForShape( *mpObj.get() ) );
rValue <<= aGraphic.GetXGraphic();
}
return true;