diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-02 10:44:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-02 12:12:15 +0200 |
commit | c60ad041e8f48759062d652ca20216c424768fa4 (patch) | |
tree | 73f2839e672f91b4262d79fe88bc0b8af1c44ff4 /framework/source/layoutmanager/toolbarlayoutmanager.cxx | |
parent | 826b0fc9aacbe58c998aec8ebba3401c0a68a015 (diff) |
clang-tidy modernize-pass-by-value in framework
Change-Id: I024653154c51389bb27f3e94b422ff7fc1c9b46b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135296
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/layoutmanager/toolbarlayoutmanager.cxx')
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index 20cee3f38394..34b2b0899eaf 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -39,6 +39,7 @@ #include <unotools/cmdoptions.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <toolkit/helper/convert.hxx> +#include <utility> #include <vcl/i18nhelp.hxx> #include <vcl/dockingarea.hxx> #include <vcl/settings.hxx> @@ -53,11 +54,11 @@ namespace framework { ToolbarLayoutManager::ToolbarLayoutManager( - const uno::Reference< uno::XComponentContext >& rxContext, - const uno::Reference< ui::XUIElementFactory >& xUIElementFactory, + uno::Reference< uno::XComponentContext > xContext, + uno::Reference< ui::XUIElementFactory > xUIElementFactory, LayoutManager* pParentLayouter ): - m_xContext( rxContext), - m_xUIElementFactoryManager( xUIElementFactory ), + m_xContext(std::move( xContext)), + m_xUIElementFactoryManager(std::move( xUIElementFactory )), m_pParentLayouter( pParentLayouter ), m_aDockingArea(0, 0, 0, 0), m_aDockingAreaOffsets(0, 0, 0, 0), |