oox/source/shape/WpgContext.cxx | 2 +- oox/source/shape/WpgContext.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 71954eae45173618f7da1a839d674e888f64bab2 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed Aug 24 20:57:04 2022 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Thu Aug 25 08:13:02 2022 +0200 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 <vmik...@collabora.com> 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,