summaryrefslogtreecommitdiff
path: root/oox/source/ppt/pptshapegroupcontext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-02 13:42:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-02 14:36:02 +0200
commit81002bc718edad94613b20c2480719979b443b99 (patch)
treea25b6474872505e71c34abedef2e3dfc7ccd6435 /oox/source/ppt/pptshapegroupcontext.cxx
parent554370661554652e7be96034e310d6863c700285 (diff)
clang-tidy modernize-pass-by-value in oox
Change-Id: Ia553a24693f2ffc0f580c9869b82f0d01a1a0ffb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137693 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/ppt/pptshapegroupcontext.cxx')
-rw-r--r--oox/source/ppt/pptshapegroupcontext.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/oox/source/ppt/pptshapegroupcontext.cxx b/oox/source/ppt/pptshapegroupcontext.cxx
index 6c6a340a9f8a..dcce466fefd2 100644
--- a/oox/source/ppt/pptshapegroupcontext.cxx
+++ b/oox/source/ppt/pptshapegroupcontext.cxx
@@ -35,6 +35,7 @@
#include "extdrawingfragmenthandler.hxx"
#include <oox/token/namespaces.hxx>
#include <oox/token/tokens.hxx>
+#include <utility>
using namespace oox::core;
using namespace ::com::sun::star;
@@ -47,12 +48,12 @@ namespace oox::ppt {
PPTShapeGroupContext::PPTShapeGroupContext(
FragmentHandler2 const & rParent,
- const oox::ppt::SlidePersistPtr& rSlidePersistPtr,
+ oox::ppt::SlidePersistPtr pSlidePersistPtr,
const ShapeLocation eShapeLocation,
const oox::drawingml::ShapePtr& pMasterShapePtr,
const oox::drawingml::ShapePtr& pGroupShapePtr )
: ShapeGroupContext( rParent, pMasterShapePtr, pGroupShapePtr )
-, mpSlidePersistPtr( rSlidePersistPtr )
+, mpSlidePersistPtr(std::move( pSlidePersistPtr ))
, meShapeLocation( eShapeLocation )
{
}