summaryrefslogtreecommitdiff
path: root/dbaccess/source/sdbtools/inc/connectiondependent.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-13 16:28:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-13 20:37:35 +0200
commit9e0332bfb9d71a37d80602034b8cfd0efb93cee7 (patch)
treecc171e85f4e7f9c9381330cdf797465fecda295f /dbaccess/source/sdbtools/inc/connectiondependent.hxx
parent3ad12672e924f7aef394119f9fe5f0b06a900b9e (diff)
clang-tidy modernize-pass-by-value in dbaccess
Change-Id: I8f89ec8a73f82fd93320a710165df17180939f96 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135731 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/sdbtools/inc/connectiondependent.hxx')
-rw-r--r--dbaccess/source/sdbtools/inc/connectiondependent.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/dbaccess/source/sdbtools/inc/connectiondependent.hxx b/dbaccess/source/sdbtools/inc/connectiondependent.hxx
index d315d70187fb..9f424256c61c 100644
--- a/dbaccess/source/sdbtools/inc/connectiondependent.hxx
+++ b/dbaccess/source/sdbtools/inc/connectiondependent.hxx
@@ -25,6 +25,7 @@
#include <cppuhelper/weakref.hxx>
#include <osl/mutex.hxx>
+#include <utility>
namespace sdbtools
{
@@ -58,8 +59,8 @@ namespace sdbtools
class EntryGuard;
protected:
- explicit ConnectionDependentComponent( const css::uno::Reference< css::uno::XComponentContext > & _rContext )
- :m_aContext( _rContext )
+ explicit ConnectionDependentComponent( css::uno::Reference< css::uno::XComponentContext > _xContext )
+ :m_aContext(std::move( _xContext ))
{
}