diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-21 09:01:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-21 13:17:18 +0200 |
commit | c7c49309d0021b0e26c3179dd7adce71431ec7fc (patch) | |
tree | b66fb64d74c5476437f051580a1533bf3e4a1f31 /extensions/source/abpilot | |
parent | 7778a1a573ad87fae76810ad67e6808b22f63420 (diff) |
clang-tidy modernize-pass-by-value in extensions
Change-Id: I9f31d6ddea3f99ed3334fa00d0f2c8448f9b9583
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136203
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions/source/abpilot')
-rw-r--r-- | extensions/source/abpilot/admininvokationimpl.cxx | 5 | ||||
-rw-r--r-- | extensions/source/abpilot/admininvokationimpl.hxx | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/extensions/source/abpilot/admininvokationimpl.cxx b/extensions/source/abpilot/admininvokationimpl.cxx index c8ec00b681a7..b2e26ed35af1 100644 --- a/extensions/source/abpilot/admininvokationimpl.cxx +++ b/extensions/source/abpilot/admininvokationimpl.cxx @@ -26,6 +26,7 @@ #include <comphelper/propertysequence.hxx> #include <strings.hrc> #include <componentmodule.hxx> +#include <utility> #include <vcl/stdtext.hxx> #include <vcl/weld.hxx> @@ -41,10 +42,10 @@ namespace abp using namespace ::com::sun::star::sdbc; OAdminDialogInvokation::OAdminDialogInvokation(const Reference< XComponentContext >& _rxContext, - const css::uno::Reference< css::beans::XPropertySet >& _rxDataSource, + css::uno::Reference< css::beans::XPropertySet > _xDataSource, weld::Window* _pMessageParent) :m_xContext(_rxContext) - ,m_xDataSource(_rxDataSource) + ,m_xDataSource(std::move(_xDataSource)) ,m_pMessageParent(_pMessageParent) { DBG_ASSERT(m_xContext.is(), "OAdminDialogInvokation::OAdminDialogInvokation: invalid service factory!"); diff --git a/extensions/source/abpilot/admininvokationimpl.hxx b/extensions/source/abpilot/admininvokationimpl.hxx index 2003809c8727..fef7a11eb388 100644 --- a/extensions/source/abpilot/admininvokationimpl.hxx +++ b/extensions/source/abpilot/admininvokationimpl.hxx @@ -40,7 +40,7 @@ namespace abp public: OAdminDialogInvokation( const css::uno::Reference< css::uno::XComponentContext >& _rxContext, - const css::uno::Reference< css::beans::XPropertySet >& _rDataSource, + css::uno::Reference< css::beans::XPropertySet > _xDataSource, weld::Window* _pMessageParent ); |