summaryrefslogtreecommitdiff
path: root/include/vbahelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-02 22:24:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-03 13:35:43 +0200
commit46972be699730f4dc381a19b5d50a02eae407a71 (patch)
treea2e6d556d790eb155e29495cb7477d74271d54d0 /include/vbahelper
parent4d55513852d41ed72e945597b1f8749c14562012 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'include/vbahelper')
-rw-r--r--include/vbahelper/vbacollectionimpl.hxx6
1 files changed, 3 insertions, 3 deletions
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