summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/jvmaccess/unovirtualmachine.hxx2
-rw-r--r--jvmaccess/source/unovirtualmachine.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/jvmaccess/unovirtualmachine.hxx b/include/jvmaccess/unovirtualmachine.hxx
index 382699982aba..8021814dc44c 100644
--- a/include/jvmaccess/unovirtualmachine.hxx
+++ b/include/jvmaccess/unovirtualmachine.hxx
@@ -74,7 +74,7 @@ public:
@return
The Java virtual machine wrapper. Will never be null.
*/
- rtl::Reference< jvmaccess::VirtualMachine > getVirtualMachine() const;
+ const rtl::Reference< jvmaccess::VirtualMachine >& getVirtualMachine() const;
/** Get the UNO class loader.
diff --git a/jvmaccess/source/unovirtualmachine.cxx b/jvmaccess/source/unovirtualmachine.cxx
index 0a48b1ee3b07..8b6b27d4ce97 100644
--- a/jvmaccess/source/unovirtualmachine.cxx
+++ b/jvmaccess/source/unovirtualmachine.cxx
@@ -57,7 +57,7 @@ UnoVirtualMachine::UnoVirtualMachine(
}
}
-rtl::Reference< jvmaccess::VirtualMachine >
+const rtl::Reference< jvmaccess::VirtualMachine >&
UnoVirtualMachine::getVirtualMachine() const {
return m_virtualMachine;
}