diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-05-04 10:00:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-05-04 11:58:23 +0200 |
commit | 6b6df07d2fe6346bc5a6b32912abcb7694853e2a (patch) | |
tree | 383fff0a4224a84ff2560d3e2ed2deb4f244bfa5 /framework/source/uielement/uicommanddescription.cxx | |
parent | f04375e1cfaadb12b2c42c8f0fbb0c05b223e092 (diff) |
Just use Any ctor instead of makeAny in framework
Change-Id: I9f4990cf58cc794408dd70cd7fbfb2a8effa138c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133806
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'framework/source/uielement/uicommanddescription.cxx')
-rw-r--r-- | framework/source/uielement/uicommanddescription.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/source/uielement/uicommanddescription.cxx b/framework/source/uielement/uicommanddescription.cxx index 9f81afced1a7..793bc9db8fe0 100644 --- a/framework/source/uielement/uicommanddescription.cxx +++ b/framework/source/uielement/uicommanddescription.cxx @@ -203,11 +203,11 @@ Any ConfigurationAccess_UICommand::getByNameImpl( const OUString& rCommandURL ) addGenericInfoToCache(); if ( rCommandURL.equalsIgnoreAsciiCase( UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDIMAGELIST )) - return makeAny( m_aCommandImageList ); + return Any( m_aCommandImageList ); else if ( rCommandURL.equalsIgnoreAsciiCase( UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDROTATEIMAGELIST )) - return makeAny( m_aCommandRotateImageList ); + return Any( m_aCommandRotateImageList ); else if ( rCommandURL.equalsIgnoreAsciiCase( UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDMIRRORIMAGELIST )) - return makeAny( m_aCommandMirrorImageList ); + return Any( m_aCommandMirrorImageList ); else return Any(); } @@ -268,8 +268,8 @@ Any ConfigurationAccess_UICommand::getSequenceFromCache( const OUString& aComman Sequence< PropertyValue > aPropSeq{ comphelper::makePropertyValue("Label", !pIter->second.aContextLabel.isEmpty() - ? makeAny(pIter->second.aContextLabel) - : makeAny(pIter->second.aLabel)), + ? Any(pIter->second.aContextLabel) + : Any(pIter->second.aLabel)), comphelper::makePropertyValue("Name", pIter->second.aCommandName), comphelper::makePropertyValue("Popup", pIter->second.bPopup), comphelper::makePropertyValue(m_aPropProperties, pIter->second.nProperties), @@ -278,7 +278,7 @@ Any ConfigurationAccess_UICommand::getSequenceFromCache( const OUString& aComman comphelper::makePropertyValue("TargetURL", pIter->second.aTargetURL), comphelper::makePropertyValue("IsExperimental", pIter->second.bIsExperimental) }; - return makeAny( aPropSeq ); + return Any( aPropSeq ); } return Any(); |