summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/package/pkgprovider.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-01 09:09:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-01 13:05:05 +0200
commitb4b4c129e9f00189978cd7b71fd74d0dca4c9ebc (patch)
tree1afab2d8c7eee21866030fd498faa53af6f9be66 /ucb/source/ucp/package/pkgprovider.cxx
parent915f3959fe6b3e756b9797a9222b95d9b8c3d293 (diff)
clang-tidy modernize-pass-by-value in ucb
Change-Id: I641d05e360c3208845a2fa6721ac8ba1ad0f3309 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137667 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/package/pkgprovider.cxx')
-rw-r--r--ucb/source/ucp/package/pkgprovider.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/ucb/source/ucp/package/pkgprovider.cxx b/ucb/source/ucp/package/pkgprovider.cxx
index 8ec89e87d329..636ecb3333e3 100644
--- a/ucb/source/ucp/package/pkgprovider.cxx
+++ b/ucb/source/ucp/package/pkgprovider.cxx
@@ -37,6 +37,7 @@
#include "pkgcontent.hxx"
#include "pkguri.hxx"
#include <unordered_map>
+#include <utility>
using namespace com::sun::star;
@@ -57,10 +58,10 @@ class Package : public cppu::OWeakObject,
ContentProvider* m_pOwner;
public:
- Package( const OUString& rName,
- const uno::Reference< container::XHierarchicalNameAccess > & xNA,
+ Package( OUString aName,
+ uno::Reference< container::XHierarchicalNameAccess > xNA,
ContentProvider* pOwner )
- : m_aName( rName ), m_xNA( xNA ), m_pOwner( pOwner ) {}
+ : m_aName(std::move( aName )), m_xNA(std::move( xNA )), m_pOwner( pOwner ) {}
virtual ~Package() override { m_pOwner->removePackage( m_aName ); }
// XInterface