Kaydet (Commit) 9fd9d25d authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constparams in filter

Change-Id: I938375bd3072dbc00e4b8c2e6d53c5c4c6ef0e7c
Reviewed-on: https://gerrit.libreoffice.org/40580Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 545c6fdd
......@@ -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 ) );
......
......@@ -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;
}
......
......@@ -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 )
{
}
......
......@@ -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 );
......
......@@ -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& );
......
......@@ -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; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment