diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-02 12:09:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-04 07:46:58 +0100 |
commit | da90193c8c0ab1f5403d37902f0037b51659b6d9 (patch) | |
tree | b5c49c3ad20d5d93eed84ec1eedbb331dfcb5b0b | |
parent | 7f81b9b9636b5f2333d1bc7eb0f2873aeb83ab07 (diff) |
loplugin:constparams in filter
Change-Id: I9fc76693da88d74b6fe7bbb920b8e731b82be298
Reviewed-on: https://gerrit.libreoffice.org/44260
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | filter/source/graphicfilter/icgm/actimpr.cxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/icgm/bitmap.cxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/icgm/bitmap.hxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/icgm/outact.hxx | 2 | ||||
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 4 | ||||
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 4 | ||||
-rw-r--r-- | include/filter/msfilter/msdffimp.hxx | 4 | ||||
-rw-r--r-- | include/filter/msfilter/svdfppt.hxx | 4 |
8 files changed, 12 insertions, 12 deletions
diff --git a/filter/source/graphicfilter/icgm/actimpr.cxx b/filter/source/graphicfilter/icgm/actimpr.cxx index 155ad22208d9..9a0762905bab 100644 --- a/filter/source/graphicfilter/icgm/actimpr.cxx +++ b/filter/source/graphicfilter/icgm/actimpr.cxx @@ -706,7 +706,7 @@ void CGMImpressOutAct::DrawPolyPolygon( tools::PolyPolygon const & rPolyPolygon } } -void CGMImpressOutAct::DrawText( awt::Point const & rTextPos, awt::Size& rTextSize, char const * pString, FinalFlag eFlag ) +void CGMImpressOutAct::DrawText( awt::Point const & rTextPos, awt::Size const & rTextSize, char const * pString, FinalFlag eFlag ) { if ( ImplCreateShape( "com.sun.star.drawing.TextShape" ) ) { diff --git a/filter/source/graphicfilter/icgm/bitmap.cxx b/filter/source/graphicfilter/icgm/bitmap.cxx index 72099a3eb076..3dc9d98dc668 100644 --- a/filter/source/graphicfilter/icgm/bitmap.cxx +++ b/filter/source/graphicfilter/icgm/bitmap.cxx @@ -335,7 +335,7 @@ bool CGMBitmap::ImplGetDimensions( CGMBitmapDescriptor& rDesc ) } -void CGMBitmap::ImplInsert( CGMBitmapDescriptor& rSource, CGMBitmapDescriptor& rDest ) +void CGMBitmap::ImplInsert( CGMBitmapDescriptor const & rSource, CGMBitmapDescriptor& rDest ) { if ( ( rSource.mnR.Y == rDest.mnQ.Y ) && ( rSource.mnR.X == rDest.mnQ.X ) ) { // Insert on Bottom diff --git a/filter/source/graphicfilter/icgm/bitmap.hxx b/filter/source/graphicfilter/icgm/bitmap.hxx index ccf0f043cf45..e05ef169a676 100644 --- a/filter/source/graphicfilter/icgm/bitmap.hxx +++ b/filter/source/graphicfilter/icgm/bitmap.hxx @@ -78,7 +78,7 @@ class CGMBitmap bool ImplGetDimensions( CGMBitmapDescriptor& ); void ImplSetCurrentPalette( CGMBitmapDescriptor& ); void ImplGetBitmap( CGMBitmapDescriptor& ); - void ImplInsert( CGMBitmapDescriptor& rSource, CGMBitmapDescriptor& rDest ); + void ImplInsert( CGMBitmapDescriptor const & rSource, CGMBitmapDescriptor& rDest ); public: explicit CGMBitmap( CGM& rCGM ); ~CGMBitmap(); diff --git a/filter/source/graphicfilter/icgm/outact.hxx b/filter/source/graphicfilter/icgm/outact.hxx index 113156ce4fc0..98f02a6e124f 100644 --- a/filter/source/graphicfilter/icgm/outact.hxx +++ b/filter/source/graphicfilter/icgm/outact.hxx @@ -89,7 +89,7 @@ public: void DrawPolyLine( tools::Polygon& ); void DrawPolybezier( tools::Polygon& ); void DrawPolyPolygon( tools::PolyPolygon const & ); - void DrawText( css::awt::Point const & TextRectPos, css::awt::Size& TextRectSize, char const * String, FinalFlag ); + void DrawText( css::awt::Point const & TextRectPos, css::awt::Size const & TextRectSize, char const * String, FinalFlag ); void AppendText( const char* String ); void FirstOutPut() { mpCGM->mbFirstOutPut = false; } ; diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index b2208e978059..fdc3f1e3a5dd 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -2564,7 +2564,7 @@ void DffPropertyReader::ApplyAttributes( SvStream& rIn, SfxItemSet& rSet ) const ApplyAttributes( rIn, rSet, aDffObjTemp ); } -void DffPropertyReader::ApplyAttributes( SvStream& rIn, SfxItemSet& rSet, DffObjData& rObjData ) const +void DffPropertyReader::ApplyAttributes( SvStream& rIn, SfxItemSet& rSet, DffObjData const & rObjData ) const { bool bHasShadow = false; bool bNonZeroShadowOffset = false; @@ -2692,7 +2692,7 @@ void DffPropertyReader::ApplyAttributes( SvStream& rIn, SfxItemSet& rSet, DffObj } } -void DffPropertyReader::CheckAndCorrectExcelTextRotation( SvStream& rIn, SfxItemSet& rSet, DffObjData& rObjData ) const +void DffPropertyReader::CheckAndCorrectExcelTextRotation( SvStream& rIn, SfxItemSet& rSet, DffObjData const & rObjData ) const { bool bRotateTextWithShape = rObjData.bRotateTextWithShape; if ( rObjData.bOpt2 ) // sj: #158494# is the second property set available ? if then we have to check the xml data of diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 9d9b08b5b88f..90d615d5c4fd 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -4417,7 +4417,7 @@ PPTParaPropSet::PPTParaPropSet() mxParaSet->mnHasAnm = 1; } -PPTParaPropSet::PPTParaPropSet( PPTParaPropSet& rParaPropSet ) +PPTParaPropSet::PPTParaPropSet( PPTParaPropSet const & rParaPropSet ) { mxParaSet = rParaPropSet.mxParaSet; mnOriginalTextPos = rParaPropSet.mnOriginalTextPos; @@ -6475,7 +6475,7 @@ void PPTFieldEntry::SetDateTime( sal_uInt32 nVal ) } } -PPTTextObj::PPTTextObj( SvStream& rIn, SdrPowerPointImport& rSdrPowerPointImport, PptSlidePersistEntry& rPersistEntry, DffObjData* pObjData ) : +PPTTextObj::PPTTextObj( SvStream& rIn, SdrPowerPointImport& rSdrPowerPointImport, PptSlidePersistEntry& rPersistEntry, DffObjData const * pObjData ) : mxImplTextObj ( new ImplPPTTextObj( rPersistEntry ) ) { mxImplTextObj->mnShapeId = 0; diff --git a/include/filter/msfilter/msdffimp.hxx b/include/filter/msfilter/msdffimp.hxx index 51cda16f4749..03ebc81ccf6a 100644 --- a/include/filter/msfilter/msdffimp.hxx +++ b/include/filter/msfilter/msdffimp.hxx @@ -78,7 +78,7 @@ class MSFILTER_DLLPUBLIC DffPropertyReader : public DffPropSet std::unique_ptr<DffPropSet> pDefaultPropSet; void ApplyCustomShapeTextAttributes( SfxItemSet& rSet ) const; - void CheckAndCorrectExcelTextRotation( SvStream& rIn, SfxItemSet& rSet, DffObjData& rObjData ) const; + void CheckAndCorrectExcelTextRotation( SvStream& rIn, SfxItemSet& rSet, DffObjData const & rObjData ) const; void ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxItemSet& rSet, const DffObjData& rObjData ) const; @@ -101,7 +101,7 @@ public: void SetDefaultPropSet( SvStream& rIn, sal_uInt32 nOffDgg ) const; void ApplyAttributes( SvStream& rIn, SfxItemSet& rSet ) const; - void ApplyAttributes( SvStream& rIn, SfxItemSet& rSet, DffObjData& rObjData ) const; + void ApplyAttributes( SvStream& rIn, SfxItemSet& rSet, DffObjData const & rObjData ) const; void ImportGradientColor( SfxItemSet& aSet, MSO_FillType eMSO_FillType, double dTrans, double dBackTrans ) const; }; diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx index 2be1cd00dbb0..e293d40d0ee0 100644 --- a/include/filter/msfilter/svdfppt.hxx +++ b/include/filter/msfilter/svdfppt.hxx @@ -907,7 +907,7 @@ struct PPTParaPropSet rtl::Reference<ImplPPTParaPropSet> mxParaSet; PPTParaPropSet(); - PPTParaPropSet( PPTParaPropSet& rParaPropSet ); + PPTParaPropSet( PPTParaPropSet const & rParaPropSet ); ~PPTParaPropSet(); PPTParaPropSet& operator=( const PPTParaPropSet& rParaPropSet ); @@ -1240,7 +1240,7 @@ public: SvStream& rSt, SdrPowerPointImport&, PptSlidePersistEntry&, - DffObjData* + DffObjData const * ); PPTTextObj( PPTTextObj const & rTextObj ); ~PPTTextObj(); |