diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-08-24 20:57:04 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-08-25 08:13:02 +0200 |
commit | 71954eae45173618f7da1a839d674e888f64bab2 (patch) | |
tree | bb684c28c3e6993ba8f075d7e11c08738349a627 /oox/source/shape | |
parent | 497fd09add19ccb834aa40226b60c642299e210e (diff) |
oox: avoid unnecessary value parameter
This parameter is copied for each invocation but only used as a const
reference; make it a const reference.
Change-Id: Iff80fb1b8d2374b93eca718b932659aca8142713
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138775
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'oox/source/shape')
-rw-r--r-- | oox/source/shape/WpgContext.cxx | 2 | ||||
-rw-r--r-- | oox/source/shape/WpgContext.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/shape/WpgContext.cxx b/oox/source/shape/WpgContext.cxx index cf65491e0f26..8d83758b7316 100644 --- a/oox/source/shape/WpgContext.cxx +++ b/oox/source/shape/WpgContext.cxx @@ -20,7 +20,7 @@ using namespace com::sun::star; namespace oox::shape { -WpgContext::WpgContext(FragmentHandler2 const& rParent, oox::drawingml::ShapePtr pMaster) +WpgContext::WpgContext(FragmentHandler2 const& rParent, const oox::drawingml::ShapePtr& pMaster) : FragmentHandler2(rParent) , m_bFullWPGSupport(false) { diff --git a/oox/source/shape/WpgContext.hxx b/oox/source/shape/WpgContext.hxx index 643a2a49357b..edd11644b214 100644 --- a/oox/source/shape/WpgContext.hxx +++ b/oox/source/shape/WpgContext.hxx @@ -20,7 +20,7 @@ class WpgContext final : public oox::core::FragmentHandler2 { public: explicit WpgContext(oox::core::FragmentHandler2 const& rParent, - oox::drawingml::ShapePtr pMaster); + const oox::drawingml::ShapePtr& pMaster); ~WpgContext() override; oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken, |