From 46972be699730f4dc381a19b5d50a02eae407a71 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 2 May 2022 22:24:37 +0200 Subject: Just use Any ctor instead of makeAny in vbahelper Change-Id: Ie985584ad55f69817294e45b11b7c832d39c9bf7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133737 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- include/vbahelper/vbacollectionimpl.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/vbahelper') diff --git a/include/vbahelper/vbacollectionimpl.hxx b/include/vbahelper/vbacollectionimpl.hxx index c6a0b85aee75..7b3af3e55511 100644 --- a/include/vbahelper/vbacollectionimpl.hxx +++ b/include/vbahelper/vbacollectionimpl.hxx @@ -167,7 +167,7 @@ private: virtual css::uno::Any SAL_CALL nextElement( ) override { if ( hasMoreElements() ) - return css::uno::makeAny( *mIt++ ); + return css::uno::Any( *mIt++ ); throw css::container::NoSuchElementException(); } }; @@ -184,7 +184,7 @@ public: { if ( !hasByName(aName) ) throw css::container::NoSuchElementException(); - return css::uno::makeAny( *cachePos ); + return css::uno::Any( *cachePos ); } virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( ) override { @@ -220,7 +220,7 @@ public: if ( Index < 0 || Index >= getCount() ) throw css::lang::IndexOutOfBoundsException(); - return css::uno::makeAny( mXNamedVec[ Index ] ); + return css::uno::Any( mXNamedVec[ Index ] ); } // XEnumerationAccess -- cgit