From 6d6b84db61eda9eb7d8d6a0b08c911af5927d38d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 3 May 2022 21:48:59 +0200 Subject: 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 --- sot/source/sdstor/storage.cxx | 2 +- sot/source/sdstor/ucbstorage.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sot') 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 -- cgit