From d47d8f3725ca38d46c6f2f37465f3856945de90e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 4 May 2022 09:07:08 +0200 Subject: [PATCH] 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 --- javaunohelper/source/vm.cxx | 4 ++-- 1 file 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 ); }