summaryrefslogtreecommitdiff
path: root/ucbhelper/source/provider/resultsethelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-27 10:11:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-27 13:40:26 +0200
commiteea6b27762cdd5f831f4a83b8c5d2979652aab03 (patch)
tree7bd5abed3f67eb8156df80496f7af3988e90780f /ucbhelper/source/provider/resultsethelper.cxx
parent35ca93f7892e8f19b871f7f687a9f7e4933a65ad (diff)
clang-tidy modernize-pass-by-value in ucbhelper
Change-Id: I9f73760a800bee5a810add9ee0ebed3a778ddd8b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136475 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper/source/provider/resultsethelper.cxx')
-rw-r--r--ucbhelper/source/provider/resultsethelper.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/ucbhelper/source/provider/resultsethelper.cxx b/ucbhelper/source/provider/resultsethelper.cxx
index 60f8977d1852..5e96204df0e5 100644
--- a/ucbhelper/source/provider/resultsethelper.cxx
+++ b/ucbhelper/source/provider/resultsethelper.cxx
@@ -34,6 +34,7 @@
#include <com/sun/star/ucb/XSourceInitialization.hpp>
#include <cppuhelper/supportsservice.hxx>
#include <ucbhelper/resultsethelper.hxx>
+#include <utility>
#include <osl/diagnose.h>
@@ -47,12 +48,12 @@ namespace ucbhelper {
ResultSetImplHelper::ResultSetImplHelper(
- const uno::Reference< uno::XComponentContext >& rxContext,
- const css::ucb::OpenCommandArgument2& rCommand )
+ uno::Reference< uno::XComponentContext > xContext,
+ css::ucb::OpenCommandArgument2 aCommand )
: m_bStatic( false ),
m_bInitDone( false ),
- m_aCommand( rCommand ),
- m_xContext( rxContext )
+ m_aCommand(std::move( aCommand )),
+ m_xContext(std::move( xContext ))
{
}