diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-21 10:18:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-21 12:59:41 +0200 |
commit | 49fdae5bb4f584d26cea958e554678154bedf379 (patch) | |
tree | b888e7853807edbe531c3055582575e06396c8a1 /javaunohelper | |
parent | 8fb6f3d894093c729e8ee304f8b6fb553a7ceac4 (diff) |
clang-tidy modernize-pass-by-value in io..jvmfwk
Change-Id: I6e19d4d03957c35caa79a231927eae04ae630442
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136209
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'javaunohelper')
-rw-r--r-- | javaunohelper/source/vm.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/javaunohelper/source/vm.cxx b/javaunohelper/source/vm.cxx index e634c55961ff..7191e5860273 100644 --- a/javaunohelper/source/vm.cxx +++ b/javaunohelper/source/vm.cxx @@ -29,6 +29,7 @@ #include <cppuhelper/basemutex.hxx> #include <jvmaccess/virtualmachine.hxx> #include <jvmaccess/unovirtualmachine.hxx> +#include <utility> namespace { @@ -43,9 +44,9 @@ protected: virtual void SAL_CALL disposing() override; public: - explicit SingletonFactory( ::rtl::Reference< ::jvmaccess::UnoVirtualMachine > const & vm_access ) + explicit SingletonFactory( ::rtl::Reference< ::jvmaccess::UnoVirtualMachine > vm_access ) : t_impl( m_aMutex ), - m_vm_access( vm_access ) + m_vm_access(std::move( vm_access )) {} // XSingleComponentFactory impl |