filter/source/msfilter/escherex.cxx | 4 ++-- filter/source/msfilter/svdfppt.cxx | 12 ++++++------ filter/source/xsltdialog/typedetectionexport.cxx | 2 +- filter/source/xsltdialog/typedetectionexport.hxx | 2 +- include/filter/msfilter/escherex.hxx | 8 ++++---- include/filter/msfilter/svdfppt.hxx | 12 ++++++------ 6 files changed, 20 insertions(+), 20 deletions(-)
New commits: commit 9fd9d25d04709a3ec6957f6b40d5534bec86ed6a Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Mon Jul 31 09:28:38 2017 +0200 loplugin:constparams in filter Change-Id: I938375bd3072dbc00e4b8c2e6d53c5c4c6ef0e7c Reviewed-on: https://gerrit.libreoffice.org/40580 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index a8c5be66ab27..a75afd369bea 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -4689,9 +4689,9 @@ void EscherSolverContainer::AddShape( const css::uno::Reference< css::drawing::X void EscherSolverContainer::AddConnector( const css::uno::Reference< css::drawing::XShape > & rConnector, const css::awt::Point& rPA, - css::uno::Reference< css::drawing::XShape > & rConA, + css::uno::Reference< css::drawing::XShape > const & rConA, const css::awt::Point& rPB, - css::uno::Reference< css::drawing::XShape > & rConB + css::uno::Reference< css::drawing::XShape > const & rConB ) { maConnectorList.push_back( new EscherConnectorListEntry( rConnector, rPA, rConA, rPB, rConB ) ); diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 9138b39ce517..834b8927561d 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -3154,7 +3154,7 @@ void SdrEscherImport::ImportHeaderFooterContainer( DffRecordHeader const & rHd, } } -PPTBuGraEntry::PPTBuGraEntry( Graphic& rGraphic, sal_uInt32 nInst ) : +PPTBuGraEntry::PPTBuGraEntry( Graphic const & rGraphic, sal_uInt32 nInst ) : nInstance ( nInst ), aBuGra ( rGraphic ) {} @@ -4533,12 +4533,12 @@ PPTTextRulerInterpreter::PPTTextRulerInterpreter() : { } -PPTTextRulerInterpreter::PPTTextRulerInterpreter( PPTTextRulerInterpreter& rRuler ) +PPTTextRulerInterpreter::PPTTextRulerInterpreter( PPTTextRulerInterpreter const & rRuler ) { mxImplRuler = rRuler.mxImplRuler; } -PPTTextRulerInterpreter::PPTTextRulerInterpreter( sal_uInt32 nFileOfs, DffRecordHeader& rHeader, SvStream& rIn ) : +PPTTextRulerInterpreter::PPTTextRulerInterpreter( sal_uInt32 nFileOfs, DffRecordHeader const & rHeader, SvStream& rIn ) : mxImplRuler ( new PPTRuler() ) { if ( nFileOfs != 0xffffffff ) @@ -4841,7 +4841,7 @@ void StyleTextProp9::Read( SvStream& rIn ) } PPTStyleTextPropReader::PPTStyleTextPropReader( SvStream& rIn, const DffRecordHeader& rTextHeader, - PPTTextRulerInterpreter& rRuler, const DffRecordHeader& rExtParaHd, TSS_Type nInstance ) + PPTTextRulerInterpreter const & rRuler, const DffRecordHeader& rExtParaHd, TSS_Type nInstance ) { Init(rIn, rTextHeader, rRuler, rExtParaHd, nInstance); } @@ -5838,7 +5838,7 @@ PPTParagraphObj::PPTParagraphObj( const PPTStyleSheet& rStyleSheet, TSS_Type nIn PPTParagraphObj::PPTParagraphObj( PPTStyleTextPropReader& rPropReader, size_t const nCurParaPos, size_t& rnCurCharPos, const PPTStyleSheet& rStyleSheet, - TSS_Type nInstance, PPTTextRulerInterpreter& rRuler ) : + TSS_Type nInstance, PPTTextRulerInterpreter const & rRuler ) : PPTParaPropSet ( *rPropReader.aParaPropList[nCurParaPos] ), PPTNumberFormatCreator ( nullptr ), PPTTextRulerInterpreter ( rRuler ), @@ -7114,7 +7114,7 @@ PPTTextObj::PPTTextObj( SvStream& rIn, SdrPowerPointImport& rSdrPowerPointImport } } -PPTTextObj::PPTTextObj( PPTTextObj& rTextObj ) +PPTTextObj::PPTTextObj( PPTTextObj const & rTextObj ) { mxImplTextObj = rTextObj.mxImplTextObj; } diff --git a/filter/source/xsltdialog/typedetectionexport.cxx b/filter/source/xsltdialog/typedetectionexport.cxx index 386f47509dcb..1219e3cf21d9 100644 --- a/filter/source/xsltdialog/typedetectionexport.cxx +++ b/filter/source/xsltdialog/typedetectionexport.cxx @@ -36,7 +36,7 @@ using namespace com::sun::star::lang; using namespace com::sun::star::xml::sax; -TypeDetectionExporter::TypeDetectionExporter( Reference< XComponentContext >& xContext ) +TypeDetectionExporter::TypeDetectionExporter( Reference< XComponentContext > const & xContext ) : mxContext( xContext ) { } diff --git a/filter/source/xsltdialog/typedetectionexport.hxx b/filter/source/xsltdialog/typedetectionexport.hxx index 7081a1441f94..2f2ed5732810 100644 --- a/filter/source/xsltdialog/typedetectionexport.hxx +++ b/filter/source/xsltdialog/typedetectionexport.hxx @@ -28,7 +28,7 @@ class TypeDetectionExporter { public: - explicit TypeDetectionExporter( css::uno::Reference< css::uno::XComponentContext >& mxContext ); + explicit TypeDetectionExporter( css::uno::Reference< css::uno::XComponentContext > const & mxContext ); void doExport(const css::uno::Reference < css::io::XOutputStream >& xOS, const XMLFilterVector& rFilters ); diff --git a/include/filter/msfilter/escherex.hxx b/include/filter/msfilter/escherex.hxx index f30c8edf7fae..14e1d69d5aab 100644 --- a/include/filter/msfilter/escherex.hxx +++ b/include/filter/msfilter/escherex.hxx @@ -450,9 +450,9 @@ struct MSFILTER_DLLPUBLIC EscherConnectorListEntry EscherConnectorListEntry( const css::uno::Reference< css::drawing::XShape > & rC, const css::awt::Point& rPA, - css::uno::Reference< css::drawing::XShape > & rSA , + css::uno::Reference< css::drawing::XShape > const & rSA , const css::awt::Point& rPB, - css::uno::Reference< css::drawing::XShape > & rSB ) : + css::uno::Reference< css::drawing::XShape > const & rSB ) : mXConnector ( rC ), maPointA ( rPA ), mXConnectToA( rSA ), @@ -615,9 +615,9 @@ public: void AddConnector( const css::uno::Reference< css::drawing::XShape > &, const css::awt::Point& rA, - css::uno::Reference< css::drawing::XShape > &, + css::uno::Reference< css::drawing::XShape > const &, const css::awt::Point& rB, - css::uno::Reference< css::drawing::XShape > & rConB + css::uno::Reference< css::drawing::XShape > const & rConB ); void WriteSolver( SvStream& ); diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx index 3204454ffba7..00a2449ae5f8 100644 --- a/include/filter/msfilter/svdfppt.hxx +++ b/include/filter/msfilter/svdfppt.hxx @@ -696,7 +696,7 @@ struct PPTBuGraEntry sal_uInt32 nInstance; Graphic aBuGra; - PPTBuGraEntry( Graphic& rGraphic, sal_uInt32 nInstance ); + PPTBuGraEntry( Graphic const & rGraphic, sal_uInt32 nInstance ); }; class PPTExtParaProv @@ -979,10 +979,10 @@ struct PPTTextRulerInterpreter rtl::Reference<PPTRuler> mxImplRuler; PPTTextRulerInterpreter(); - PPTTextRulerInterpreter( PPTTextRulerInterpreter& rRuler ); + PPTTextRulerInterpreter( PPTTextRulerInterpreter const & rRuler ); PPTTextRulerInterpreter( sal_uInt32 nFileOfs, - DffRecordHeader& rHd, + DffRecordHeader const & rHd, SvStream& rIn ); ~PPTTextRulerInterpreter(); @@ -1045,7 +1045,7 @@ struct PPTStyleTextPropReader PPTStyleTextPropReader( SvStream& rIn, const DffRecordHeader& rClientTextBoxHd, - PPTTextRulerInterpreter& rInterpreter, + PPTTextRulerInterpreter const & rInterpreter, const DffRecordHeader& rExtParaHd, TSS_Type nTextInstance ); @@ -1157,7 +1157,7 @@ public: size_t& rnCurCharPos, const PPTStyleSheet&, TSS_Type nInstance, - PPTTextRulerInterpreter& rRuler + PPTTextRulerInterpreter const & rRuler ); ~PPTParagraphObj(); @@ -1221,7 +1221,7 @@ public: PptSlidePersistEntry&, DffObjData* ); - PPTTextObj( PPTTextObj& rTextObj ); + PPTTextObj( PPTTextObj const & rTextObj ); ~PPTTextObj(); sal_uInt32 GetCurrentIndex() const { return mxImplTextObj->mnCurrentObject; }; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits