summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-05 08:34:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-05 09:22:51 +0200
commit17a2c9e8e2361de27013a25e51f3a3ca729f1b31 (patch)
tree1c89bc104e5630fb71ff0a5b12c464ca2aceebc3 /xmloff
parent8fa4b0429b514c0d696ebfc2e47418292d7ec367 (diff)
clang-tidy performance-unnecessary-value-param
Change-Id: I6ed8c54c7c45931d91709cc818f2483c70197192 Reviewed-on: https://gerrit.libreoffice.org/38400 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/inc/animationimport.hxx2
-rw-r--r--xmloff/source/draw/animationimport.cxx2
-rw-r--r--xmloff/source/draw/shapeimport.cxx3
3 files changed, 4 insertions, 3 deletions
diff --git a/xmloff/inc/animationimport.hxx b/xmloff/inc/animationimport.hxx
index a6e3821b89ac..03abc23a6f9b 100644
--- a/xmloff/inc/animationimport.hxx
+++ b/xmloff/inc/animationimport.hxx
@@ -47,7 +47,7 @@ public:
sal_uInt16 nPrfx,
const OUString& rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList,
- std::shared_ptr<AnimationsImportHelperImpl> pImpl = nullptr );
+ const std::shared_ptr<AnimationsImportHelperImpl>& pImpl = nullptr );
virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
diff --git a/xmloff/source/draw/animationimport.cxx b/xmloff/source/draw/animationimport.cxx
index d32ecdbd8c1d..704ab904b17b 100644
--- a/xmloff/source/draw/animationimport.cxx
+++ b/xmloff/source/draw/animationimport.cxx
@@ -627,7 +627,7 @@ AnimationNodeContext::AnimationNodeContext(
const Reference< XAnimationNode >& xParentNode,
SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList,
- std::shared_ptr<AnimationsImportHelperImpl> pHelper )
+ const std::shared_ptr<AnimationsImportHelperImpl>& pHelper )
: SvXMLImportContext(rImport, nPrfx, rLocalName),
mpHelper( pHelper ),
mbRootContext( !pHelper )
diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx
index 709b703ca6b0..17682d8ba61c 100644
--- a/xmloff/source/draw/shapeimport.cxx
+++ b/xmloff/source/draw/shapeimport.cxx
@@ -24,6 +24,7 @@
#include <com/sun/star/text/PositionLayoutDir.hpp>
#include <com/sun/star/chart/XChartDocument.hpp>
+#include <utility>
#include <xmloff/unointerfacetouniqueidentifiermapper.hxx>
#include <list>
@@ -721,7 +722,7 @@ private:
};
ShapeSortContext::ShapeSortContext( uno::Reference< drawing::XShapes >& rShapes, std::shared_ptr<ShapeSortContext> pParentContext )
-: mxShapes( rShapes ), mnCurrentZ( 0 ), mpParentContext( pParentContext )
+: mxShapes( rShapes ), mnCurrentZ( 0 ), mpParentContext( std::move(pParentContext) )
{
}