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>
This commit is contained in:
Stephan Bergmann 2022-05-04 09:07:08 +02:00
parent bf6b64d596
commit d47d8f3725

View file

@ -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 );
}