summaryrefslogtreecommitdiff
path: root/javaunohelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-04 09:07:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-04 10:10:41 +0200
commitd47d8f3725ca38d46c6f2f37465f3856945de90e (patch)
tree5b50cad0197f4b5db4ab4a64991328c6382337e5 /javaunohelper
parentbf6b64d5963002d52c3ed2093b064896a4316d0e (diff)
Just use Any ctor instead of makeAny in javaunohelper
Change-Id: I71031155920e64eaf128d106cb0d18e9e744d34c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133803 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'javaunohelper')
-rw-r--r--javaunohelper/source/vm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/javaunohelper/source/vm.cxx b/javaunohelper/source/vm.cxx
index bdb2f58e7f1b..e634c55961ff 100644
--- a/javaunohelper/source/vm.cxx
+++ b/javaunohelper/source/vm.cxx
@@ -64,7 +64,7 @@ css::uno::Reference< css::uno::XInterface > SingletonFactory::createInstanceWith
css::uno::Reference< css::uno::XComponentContext > const & xContext )
{
sal_Int64 handle = reinterpret_cast< sal_Int64 >( m_vm_access.get() );
- css::uno::Any arg( css::beans::NamedValue( "UnoVirtualMachine", css::uno::makeAny( handle ) ) );
+ css::uno::Any arg( css::beans::NamedValue( "UnoVirtualMachine", css::uno::Any( handle ) ) );
return xContext->getServiceManager()->createInstanceWithArgumentsAndContext(
"com.sun.star.java.JavaVirtualMachine",
css::uno::Sequence< css::uno::Any >( &arg, 1 ), xContext );
@@ -104,7 +104,7 @@ css::uno::Reference< css::uno::XComponentContext > install_vm_singleton(
css::uno::Reference< css::lang::XSingleComponentFactory > xFac( new SingletonFactory( vm_access ) );
::cppu::ContextEntry_Init entry(
"/singletons/com.sun.star.java.theJavaVirtualMachine",
- css::uno::makeAny( xFac ), true );
+ css::uno::Any( xFac ), true );
return ::cppu::createComponentContext( &entry, 1, xContext );
}