diff options
Diffstat (limited to 'bridges/source/jni_uno/nativethreadpool.cxx')
-rw-r--r-- | bridges/source/jni_uno/nativethreadpool.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bridges/source/jni_uno/nativethreadpool.cxx b/bridges/source/jni_uno/nativethreadpool.cxx index 4fe4a0a2fb8d..1d14c47bb0ad 100644 --- a/bridges/source/jni_uno/nativethreadpool.cxx +++ b/bridges/source/jni_uno/nativethreadpool.cxx @@ -29,6 +29,7 @@ #include <jni.h> #include <new> +#include <utility> /* The native implementation part of * jurt/com/sun/star/lib/uno/environments/remote/NativeThreadPool.java. @@ -37,9 +38,9 @@ namespace { struct Pool { - Pool(rtl::Reference< jvmaccess::VirtualMachine > const & theVirtualMachine, + Pool(rtl::Reference< jvmaccess::VirtualMachine > theVirtualMachine, jmethodID theExecute, uno_ThreadPool thePool): - virtualMachine(theVirtualMachine), execute(theExecute), pool(thePool) {} + virtualMachine(std::move(theVirtualMachine)), execute(theExecute), pool(thePool) {} rtl::Reference< jvmaccess::VirtualMachine > virtualMachine; jmethodID execute; |