summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-23 10:03:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-23 11:46:13 +0200
commit0c17712465b07e8a7ebe078b00123965b112f0ac (patch)
treea54a02653342c34337a61695393010bbb0a70629 /include
parentf4efaf455136c3a0db8dfd3f1afc0db827192147 (diff)
clang-tidy modernize-pass-by-value in jvmaccess
Change-Id: I9a2ef4370136b0f26ae3590f358025e7d89f30d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134757 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/jvmaccess/unovirtualmachine.hxx3
-rw-r--r--include/jvmaccess/virtualmachine.hxx2
2 files changed, 2 insertions, 3 deletions
diff --git a/include/jvmaccess/unovirtualmachine.hxx b/include/jvmaccess/unovirtualmachine.hxx
index f3e34e641d6b..1b424dba9c6a 100644
--- a/include/jvmaccess/unovirtualmachine.hxx
+++ b/include/jvmaccess/unovirtualmachine.hxx
@@ -64,8 +64,7 @@ public:
@exception CreationException
Thrown in case creation fails (due to a JNI problem).
*/
- UnoVirtualMachine(rtl::Reference<jvmaccess::VirtualMachine> const& virtualMachine,
- void* classLoader);
+ UnoVirtualMachine(rtl::Reference<jvmaccess::VirtualMachine> virtualMachine, void* classLoader);
/** Get the Java virtual machine wrapper.
diff --git a/include/jvmaccess/virtualmachine.hxx b/include/jvmaccess/virtualmachine.hxx
index b4edf4de98d9..e1286e70017f 100644
--- a/include/jvmaccess/virtualmachine.hxx
+++ b/include/jvmaccess/virtualmachine.hxx
@@ -73,7 +73,7 @@ public:
@exception CreationException
Thrown in case attaching fails (due to a JNI problem).
*/
- explicit AttachGuard(rtl::Reference<VirtualMachine> const& rMachine);
+ explicit AttachGuard(rtl::Reference<VirtualMachine> xMachine);
/** Detach the current thread from the virtual machine again.
*/