summaryrefslogtreecommitdiff
path: root/cppcanvas/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-04 08:59:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-06 10:09:17 +0100
commit84b1fab6548481313e9b65a9d56965bbbbe1c112 (patch)
treeee284e831980fa04466067c091d004a8bd434ec8 /cppcanvas/source
parentde05d4ee53b5ff0e7404058cef6d3a311e6b35e4 (diff)
loplugin:constparams in cppcanvas,drawinglayer
Change-Id: I15cac1411c985afe8d7cb9439214a8092702bdb8 Reviewed-on: https://gerrit.libreoffice.org/44343 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas/source')
-rw-r--r--cppcanvas/source/mtfrenderer/emfpbrush.cxx2
-rw-r--r--cppcanvas/source/mtfrenderer/emfpbrush.hxx2
-rw-r--r--cppcanvas/source/mtfrenderer/emfpcustomlinecap.cxx4
-rw-r--r--cppcanvas/source/mtfrenderer/emfpcustomlinecap.hxx4
-rw-r--r--cppcanvas/source/mtfrenderer/emfppath.cxx2
-rw-r--r--cppcanvas/source/mtfrenderer/emfppath.hxx2
-rw-r--r--cppcanvas/source/mtfrenderer/emfppen.cxx4
-rw-r--r--cppcanvas/source/mtfrenderer/emfppen.hxx4
8 files changed, 12 insertions, 12 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfpbrush.cxx b/cppcanvas/source/mtfrenderer/emfpbrush.cxx
index b9f2ed4246e2..fb8a41c5d846 100644
--- a/cppcanvas/source/mtfrenderer/emfpbrush.cxx
+++ b/cppcanvas/source/mtfrenderer/emfpbrush.cxx
@@ -89,7 +89,7 @@ namespace cppcanvas
}
}
- void EMFPBrush::Read(SvStream& s, ImplRenderer& rR)
+ void EMFPBrush::Read(SvStream& s, ImplRenderer const & rR)
{
sal_uInt32 header;
diff --git a/cppcanvas/source/mtfrenderer/emfpbrush.hxx b/cppcanvas/source/mtfrenderer/emfpbrush.hxx
index 3d5561b55846..dc1e8d890dc6 100644
--- a/cppcanvas/source/mtfrenderer/emfpbrush.hxx
+++ b/cppcanvas/source/mtfrenderer/emfpbrush.hxx
@@ -121,7 +121,7 @@ namespace cppcanvas
sal_uInt32 GetType() const { return type; }
const ::Color& GetColor() const { return solidColor; }
- void Read(SvStream& s, ImplRenderer& rR);
+ void Read(SvStream& s, ImplRenderer const & rR);
};
}
}
diff --git a/cppcanvas/source/mtfrenderer/emfpcustomlinecap.cxx b/cppcanvas/source/mtfrenderer/emfpcustomlinecap.cxx
index d53d14fb155e..90e48264933a 100644
--- a/cppcanvas/source/mtfrenderer/emfpcustomlinecap.cxx
+++ b/cppcanvas/source/mtfrenderer/emfpcustomlinecap.cxx
@@ -74,7 +74,7 @@ namespace cppcanvas
aAttributes.MiterLimit = miterLimit;
}
- void EMFPCustomLineCap::ReadPath(SvStream& s, ImplRenderer& rR, bool bFill)
+ void EMFPCustomLineCap::ReadPath(SvStream& s, ImplRenderer const & rR, bool bFill)
{
sal_Int32 pathLength;
s.ReadInt32(pathLength);
@@ -101,7 +101,7 @@ namespace cppcanvas
polygon.transform(aMatrix);
};
- void EMFPCustomLineCap::Read(SvStream& s, ImplRenderer& rR)
+ void EMFPCustomLineCap::Read(SvStream& s, ImplRenderer const & rR)
{
sal_uInt32 header;
diff --git a/cppcanvas/source/mtfrenderer/emfpcustomlinecap.hxx b/cppcanvas/source/mtfrenderer/emfpcustomlinecap.hxx
index c5b96a10e81e..cd5a45eec997 100644
--- a/cppcanvas/source/mtfrenderer/emfpcustomlinecap.hxx
+++ b/cppcanvas/source/mtfrenderer/emfpcustomlinecap.hxx
@@ -35,8 +35,8 @@ namespace cppcanvas
EMFPCustomLineCap();
void SetAttributes(com::sun::star::rendering::StrokeAttributes& aAttributes);
- void ReadPath(SvStream& s, ImplRenderer& rR, bool bFill);
- void Read(SvStream& s, ImplRenderer& rR);
+ void ReadPath(SvStream& s, ImplRenderer const & rR, bool bFill);
+ void Read(SvStream& s, ImplRenderer const & rR);
};
}
}
diff --git a/cppcanvas/source/mtfrenderer/emfppath.cxx b/cppcanvas/source/mtfrenderer/emfppath.cxx
index 506a01f424b1..39dc1bcb9f99 100644
--- a/cppcanvas/source/mtfrenderer/emfppath.cxx
+++ b/cppcanvas/source/mtfrenderer/emfppath.cxx
@@ -102,7 +102,7 @@ namespace cppcanvas
#endif
}
- ::basegfx::B2DPolyPolygon& EMFPPath::GetPolygon (ImplRenderer& rR, bool bMapIt, bool bAddLineToCloseShape)
+ ::basegfx::B2DPolyPolygon& EMFPPath::GetPolygon (ImplRenderer const & rR, bool bMapIt, bool bAddLineToCloseShape)
{
::basegfx::B2DPolygon polygon;
diff --git a/cppcanvas/source/mtfrenderer/emfppath.hxx b/cppcanvas/source/mtfrenderer/emfppath.hxx
index 7f60a76f896f..47fb32a047e6 100644
--- a/cppcanvas/source/mtfrenderer/emfppath.hxx
+++ b/cppcanvas/source/mtfrenderer/emfppath.hxx
@@ -40,7 +40,7 @@ namespace cppcanvas
// TODO: remove rR argument when debug code is no longer needed
void Read(SvStream& s, sal_uInt32 pathFlags, ImplRenderer const & rR);
- ::basegfx::B2DPolyPolygon& GetPolygon(ImplRenderer& rR, bool bMapIt = true, bool bAddLineToCloseShape = false);
+ ::basegfx::B2DPolyPolygon& GetPolygon(ImplRenderer const & rR, bool bMapIt = true, bool bAddLineToCloseShape = false);
};
}
}
diff --git a/cppcanvas/source/mtfrenderer/emfppen.cxx b/cppcanvas/source/mtfrenderer/emfppen.cxx
index 9ca64d53c169..2bd005e4aab4 100644
--- a/cppcanvas/source/mtfrenderer/emfppen.cxx
+++ b/cppcanvas/source/mtfrenderer/emfppen.cxx
@@ -95,7 +95,7 @@ namespace cppcanvas
delete customEndCap;
}
- void EMFPPen::SetStrokeWidth(rendering::StrokeAttributes& rStrokeAttributes, ImplRenderer& rR, const OutDevState& rState)
+ void EMFPPen::SetStrokeWidth(rendering::StrokeAttributes& rStrokeAttributes, ImplRenderer const & rR, const OutDevState& rState)
{
// If a zero width is specified, a minimum value is used, which is determined by the units.
//TODO Add support for other units than Pixel
@@ -169,7 +169,7 @@ namespace cppcanvas
}
}
- void EMFPPen::Read(SvStream& s, ImplRenderer& rR)
+ void EMFPPen::Read(SvStream& s, ImplRenderer const & rR)
{
sal_uInt32 graphicsVersion, penType, penDataFlags, penUnit;
int i;
diff --git a/cppcanvas/source/mtfrenderer/emfppen.hxx b/cppcanvas/source/mtfrenderer/emfppen.hxx
index d905f9da6f2c..d5abfa7e823c 100644
--- a/cppcanvas/source/mtfrenderer/emfppen.hxx
+++ b/cppcanvas/source/mtfrenderer/emfppen.hxx
@@ -60,11 +60,11 @@ namespace cppcanvas
virtual ~EMFPPen() override;
- void SetStrokeWidth(com::sun::star::rendering::StrokeAttributes& rStrokeAttributes, ImplRenderer& rR, const OutDevState& rState);
+ void SetStrokeWidth(com::sun::star::rendering::StrokeAttributes& rStrokeAttributes, ImplRenderer const & rR, const OutDevState& rState);
void SetStrokeAttributes(com::sun::star::rendering::StrokeAttributes& rStrokeAttributes);
- void Read(SvStream& s, ImplRenderer& rR);
+ void Read(SvStream& s, ImplRenderer const & rR);
static sal_Int8 lcl_convertStrokeCap(sal_uInt32 nEmfStroke);
static sal_Int8 lcl_convertLineJoinType(sal_uInt32 nEmfLineJoin);