javaunohelper/source/vm.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d47d8f3725ca38d46c6f2f37465f3856945de90e
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Wed May 4 09:07:08 2022 +0200
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Wed May 4 10:10:41 2022 +0200

    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 <[email protected]>

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

Reply via email to