diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-12 11:25:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-12 11:25:18 +0200 |
commit | 6a8873c874db41e8818a74eb6bf2561dfdb296db (patch) | |
tree | a34620db09e026d3e3c2a7da7ea3c2d8e9cd5c12 /filter/source/svg | |
parent | dbd1f4b75a22150af80a6fbd8de1a38d5dc4b4c3 (diff) |
clang-tidy performance-unnecessary-value-param in filter
Change-Id: I6818f6c9593bfe7105cc194fcf6f69131046e4f3
Diffstat (limited to 'filter/source/svg')
-rw-r--r-- | filter/source/svg/svgexport.cxx | 4 | ||||
-rw-r--r-- | filter/source/svg/svgfilter.cxx | 4 | ||||
-rw-r--r-- | filter/source/svg/svgfilter.hxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index 17a88281d3d5..c2a53540a8e8 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -118,7 +118,7 @@ public: { pSVGExport->AddAttribute( XML_NAMESPACE_NONE, "class", getClassName() ); } - void insertMasterPage( Reference< XDrawPage> xMasterPage ) + void insertMasterPage( const Reference< XDrawPage>& xMasterPage ) { mMasterPageSet.insert( xMasterPage ); } @@ -907,7 +907,7 @@ template< typename TextFieldType > OUString implGenerateFieldId( std::vector< TextField* > & aFieldSet, const TextFieldType & aField, const OUString & sOOOElemField, - Reference< XDrawPage > xMasterPage ) + const Reference< XDrawPage >& xMasterPage ) { bool bFound = false; sal_Int32 i; diff --git a/filter/source/svg/svgfilter.cxx b/filter/source/svg/svgfilter.cxx index 503510a92a5c..2c5769ebf15f 100644 --- a/filter/source/svg/svgfilter.cxx +++ b/filter/source/svg/svgfilter.cxx @@ -304,7 +304,7 @@ void SAL_CALL SVGFilter::setTargetDocument( const Reference< XComponent >& xDoc mxDstDoc = xDoc; } -bool SVGFilter::isStreamGZip(uno::Reference<io::XInputStream> xInput) +bool SVGFilter::isStreamGZip(const uno::Reference<io::XInputStream>& xInput) { uno::Reference<io::XSeekable> xSeek(xInput, uno::UNO_QUERY); if(xSeek.is()) @@ -321,7 +321,7 @@ bool SVGFilter::isStreamGZip(uno::Reference<io::XInputStream> xInput) return false; } -bool SVGFilter::isStreamSvg(uno::Reference<io::XInputStream> xInput) +bool SVGFilter::isStreamSvg(const uno::Reference<io::XInputStream>& xInput) { uno::Reference<io::XSeekable> xSeek(xInput, uno::UNO_QUERY); if(xSeek.is()) diff --git a/filter/source/svg/svgfilter.hxx b/filter/source/svg/svgfilter.hxx index 83417a62fa38..0d4008c14707 100644 --- a/filter/source/svg/svgfilter.hxx +++ b/filter/source/svg/svgfilter.hxx @@ -289,8 +289,8 @@ private: const Reference< XPropertySetInfo > & rxPropSetInfo ); DECL_LINK_TYPED( CalcFieldHdl, EditFieldInfo*, void ); - static bool isStreamGZip(css::uno::Reference<css::io::XInputStream> xInput); - static bool isStreamSvg(css::uno::Reference<css::io::XInputStream> xInput); + static bool isStreamGZip(const css::uno::Reference<css::io::XInputStream>& xInput); + static bool isStreamSvg(const css::uno::Reference<css::io::XInputStream>& xInput); protected: |