summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-20 11:54:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-20 13:21:35 +0200
commit08366676c82d585019b575eb9ddb2d9fc537dd76 (patch)
tree5ac7ceec4e6eb0e94b866d6476577c61b1e6bcac /drawinglayer
parent8f999b555bfc6d4789916d381e38c2eb674fd26e (diff)
loplugin:constparams in drawinglayer
Change-Id: I3111210ae77f67301bb319d5364f77c52e2c4d6d Reviewed-on: https://gerrit.libreoffice.org/40220 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx2
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx4
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.hxx4
-rw-r--r--drawinglayer/source/tools/emfppath.cxx2
-rw-r--r--drawinglayer/source/tools/emfppath.hxx2
-rw-r--r--drawinglayer/source/tools/wmfemfhelper.cxx28
6 files changed, 21 insertions, 21 deletions
diff --git a/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx b/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx
index 4d2abbfe5d3c..897166caa5fc 100644
--- a/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx
@@ -36,7 +36,7 @@ namespace drawinglayer
{
void TextDecoratedPortionPrimitive2D::impCreateGeometryContent(
std::vector< Primitive2DReference >& rTarget,
- basegfx::tools::B2DHomMatrixBufferedOnDemandDecompose& rDecTrans,
+ basegfx::tools::B2DHomMatrixBufferedOnDemandDecompose const & rDecTrans,
const OUString& rText,
sal_Int32 nTextPosition,
sal_Int32 nTextLength,
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
index 93c6bd0033bb..efe3342b7cf9 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
@@ -342,7 +342,7 @@ namespace drawinglayer
}
}
- void VclMetafileProcessor2D::impStartSvtGraphicFill(SvtGraphicFill* pSvtGraphicFill)
+ void VclMetafileProcessor2D::impStartSvtGraphicFill(SvtGraphicFill const * pSvtGraphicFill)
{
if(pSvtGraphicFill && !mnSvtGraphicFillCount)
{
@@ -530,7 +530,7 @@ namespace drawinglayer
return pRetval;
}
- void VclMetafileProcessor2D::impStartSvtGraphicStroke(SvtGraphicStroke* pSvtGraphicStroke)
+ void VclMetafileProcessor2D::impStartSvtGraphicStroke(SvtGraphicStroke const * pSvtGraphicStroke)
{
if(pSvtGraphicStroke && !mnSvtGraphicStrokeCount)
{
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.hxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.hxx
index bbd032dfd94e..50ab3ec33566 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.hxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.hxx
@@ -79,7 +79,7 @@ namespace drawinglayer
Gradient& o_rVCLGradient,
const attribute::FillGradientAttribute& rFiGrAtt,
bool bIsTransparenceGradient);
- void impStartSvtGraphicFill(SvtGraphicFill* pSvtGraphicFill);
+ void impStartSvtGraphicFill(SvtGraphicFill const * pSvtGraphicFill);
void impEndSvtGraphicFill(SvtGraphicFill* pSvtGraphicFill);
SvtGraphicStroke* impTryToCreateSvtGraphicStroke(
const basegfx::B2DPolygon& rB2DPolygon,
@@ -88,7 +88,7 @@ namespace drawinglayer
const attribute::StrokeAttribute* pStrokeAttribute,
const attribute::LineStartEndAttribute* pStart,
const attribute::LineStartEndAttribute* pEnd);
- void impStartSvtGraphicStroke(SvtGraphicStroke* pSvtGraphicStroke);
+ void impStartSvtGraphicStroke(SvtGraphicStroke const * pSvtGraphicStroke);
void impEndSvtGraphicStroke(SvtGraphicStroke* pSvtGraphicStroke);
/// Convert the fWidth to the same space as its coordinates.
diff --git a/drawinglayer/source/tools/emfppath.cxx b/drawinglayer/source/tools/emfppath.cxx
index d68fd425994c..1cd1276f9120 100644
--- a/drawinglayer/source/tools/emfppath.cxx
+++ b/drawinglayer/source/tools/emfppath.cxx
@@ -61,7 +61,7 @@ namespace emfplushelper
}
// TODO: remove rR argument when debug code is no longer needed
- void EMFPPath::Read (SvStream& s, sal_uInt32 pathFlags, EmfPlusHelperData& rR)
+ void EMFPPath::Read (SvStream& s, sal_uInt32 pathFlags, EmfPlusHelperData const & rR)
{
for (int i = 0; i < nPoints; i ++)
{
diff --git a/drawinglayer/source/tools/emfppath.hxx b/drawinglayer/source/tools/emfppath.hxx
index 1e8c69771f59..6f2ccd10fe5c 100644
--- a/drawinglayer/source/tools/emfppath.hxx
+++ b/drawinglayer/source/tools/emfppath.hxx
@@ -37,7 +37,7 @@ namespace emfplushelper
virtual ~EMFPPath() override;
// TODO: remove rR argument when debug code is no longer needed
- void Read(SvStream& s, sal_uInt32 pathFlags, EmfPlusHelperData& rR);
+ void Read(SvStream& s, sal_uInt32 pathFlags, EmfPlusHelperData const & rR);
::basegfx::B2DPolyPolygon& GetPolygon(EmfPlusHelperData& rR, bool bMapIt = true, bool bAddLineToCloseShape = false);
};
diff --git a/drawinglayer/source/tools/wmfemfhelper.cxx b/drawinglayer/source/tools/wmfemfhelper.cxx
index 93162e4d3fad..0bc3a518c838 100644
--- a/drawinglayer/source/tools/wmfemfhelper.cxx
+++ b/drawinglayer/source/tools/wmfemfhelper.cxx
@@ -445,7 +445,7 @@ namespace wmfemfhelper
void createPointArrayPrimitive(
const std::vector< basegfx::B2DPoint >& rPositions,
TargetHolder& rTarget,
- PropertyHolder& rProperties,
+ PropertyHolder const & rProperties,
const basegfx::BColor& rBColor)
{
if(!rPositions.empty())
@@ -478,7 +478,7 @@ namespace wmfemfhelper
void createHairlinePrimitive(
const basegfx::B2DPolygon& rLinePolygon,
TargetHolder& rTarget,
- PropertyHolder& rProperties)
+ PropertyHolder const & rProperties)
{
if(rLinePolygon.count())
{
@@ -495,7 +495,7 @@ namespace wmfemfhelper
void createFillPrimitive(
const basegfx::B2DPolyPolygon& rFillPolyPolygon,
TargetHolder& rTarget,
- PropertyHolder& rProperties)
+ PropertyHolder const & rProperties)
{
if(rFillPolyPolygon.count())
{
@@ -513,7 +513,7 @@ namespace wmfemfhelper
const basegfx::B2DPolygon& rLinePolygon,
const LineInfo& rLineInfo,
TargetHolder& rTarget,
- PropertyHolder& rProperties)
+ PropertyHolder const & rProperties)
{
if(rLinePolygon.count())
{
@@ -579,7 +579,7 @@ namespace wmfemfhelper
void createHairlineAndFillPrimitive(
const basegfx::B2DPolygon& rPolygon,
TargetHolder& rTarget,
- PropertyHolder& rProperties)
+ PropertyHolder const & rProperties)
{
if(rProperties.getFillColorActive())
{
@@ -596,7 +596,7 @@ namespace wmfemfhelper
void createHairlineAndFillPrimitive(
const basegfx::B2DPolyPolygon& rPolyPolygon,
TargetHolder& rTarget,
- PropertyHolder& rProperties)
+ PropertyHolder const & rProperties)
{
if(rProperties.getFillColorActive())
{
@@ -622,7 +622,7 @@ namespace wmfemfhelper
const BitmapEx& rBitmapEx,
const Point& rPoint,
TargetHolder& rTarget,
- PropertyHolder& rProperties)
+ PropertyHolder const & rProperties)
{
if(!rBitmapEx.IsEmpty())
{
@@ -642,7 +642,7 @@ namespace wmfemfhelper
const Point& rPoint,
const Size& rSize,
TargetHolder& rTarget,
- PropertyHolder& rProperties)
+ PropertyHolder const & rProperties)
{
if(!rBitmapEx.IsEmpty())
{
@@ -933,7 +933,7 @@ namespace wmfemfhelper
drawinglayer::primitive2d::BasePrimitive2D* CreateColorWallpaper(
const basegfx::B2DRange& rRange,
const basegfx::BColor& rColor,
- PropertyHolder& rPropertyHolder)
+ PropertyHolder const & rPropertyHolder)
{
basegfx::B2DPolygon aOutline(basegfx::tools::createPolygonFromRect(rRange));
aOutline.transform(rPropertyHolder.getTransformation());
@@ -949,7 +949,7 @@ namespace wmfemfhelper
drawinglayer::primitive2d::BasePrimitive2D* CreateGradientWallpaper(
const basegfx::B2DRange& rRange,
const Gradient& rGradient,
- PropertyHolder& rPropertyHolder)
+ PropertyHolder const & rPropertyHolder)
{
const drawinglayer::attribute::FillGradientAttribute aAttribute(createFillGradientAttribute(rGradient));
@@ -990,7 +990,7 @@ namespace wmfemfhelper
basegfx::B2DRange aWallpaperRange,
const Wallpaper& rWallpaper,
TargetHolder& rTarget,
- PropertyHolder& rProperty)
+ PropertyHolder const & rProperty)
{
const BitmapEx aBitmapEx(rWallpaper.GetBitmap());
const WallpaperStyle eWallpaperStyle(rWallpaper.GetStyle());
@@ -1070,7 +1070,7 @@ namespace wmfemfhelper
drawinglayer::attribute::FontAttribute& rFontAttribute,
basegfx::B2DHomMatrix& rTextTransform,
basegfx::B2DVector& rAlignmentOffset,
- PropertyHolder& rProperty)
+ PropertyHolder const & rProperty)
{
const vcl::Font& rFont = rProperty.getFont();
basegfx::B2DVector aFontScaling;
@@ -1120,7 +1120,7 @@ namespace wmfemfhelper
sal_uInt16 nTextLength,
const std::vector< double >& rDXArray,
TargetHolder& rTarget,
- PropertyHolder& rProperty)
+ PropertyHolder const & rProperty)
{
drawinglayer::primitive2d::BasePrimitive2D* pResult = nullptr;
const vcl::Font& rFont = rProperty.getFont();
@@ -1316,7 +1316,7 @@ namespace wmfemfhelper
void proccessMetaTextLineAction(
const MetaTextLineAction& rAction,
TargetHolder& rTarget,
- PropertyHolder& rProperty)
+ PropertyHolder const & rProperty)
{
const double fLineWidth(fabs((double)rAction.GetWidth()));