sot/source/sdstor/storage.cxx    |    2 +-
 sot/source/sdstor/ucbstorage.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6d6b84db61eda9eb7d8d6a0b08c911af5927d38d
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue May 3 21:48:59 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Wed May 4 08:10:23 2022 +0200

    Just use Any ctor instead of makeAny in sot
    
    Change-Id: I43830efeb1671838317c5667f77c609a319a4aea
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133776
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index 0381aa477a9e..f1ff0455c0cb 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -678,7 +678,7 @@ SotStorage* SotStorage::OpenOLEStorage( const 
css::uno::Reference < css::embed::
         {
             uno::Reference < beans::XPropertySet > xStreamProps( xStream, 
uno::UNO_QUERY_THROW );
             xStreamProps->setPropertyValue( "MediaType",
-                                            uno::makeAny( OUString(  
"application/vnd.sun.star.oleobject"  ) ) );
+                                            uno::Any( OUString(  
"application/vnd.sun.star.oleobject"  ) ) );
         }
 
         pStream = utl::UcbStreamHelper::CreateStream( xStream );
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index 3f35c0b95b20..f94556edbafc 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -1996,7 +1996,7 @@ sal_Int16 UCBStorage_Impl::Commit()
                         // first remove all open stream handles
                         if (pContent && (!pElement->m_xStream.is() || 
pElement->m_xStream->Clear()))
                         {
-                            pContent->executeCommand( "delete", makeAny( true 
) );
+                            pContent->executeCommand( "delete", Any( true ) );
                             nRet = COMMIT_RESULT_SUCCESS;
                         }
                         else

Reply via email to