framework/source/uielement/statusbarmanager.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 0995df3c293782e73d1f66e029708d1a5eaab010
Author:     Michael Weghorn <[email protected]>
AuthorDate: Fri Dec 12 00:05:26 2025 +0100
Commit:     Michael Weghorn <[email protected]>
CommitDate: Fri Dec 12 13:27:47 2025 +0100

    framework: Avoid std::vector -> Sequence conversion
    
    No need for an intermediate std::vector.
    Directly create Sequence using the initializer list right away.
    
    Change-Id: I24e568bccb02056b195fb99efe609d13170b682e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195506
    Reviewed-by: Michael Weghorn <[email protected]>
    Tested-by: Jenkins

diff --git a/framework/source/uielement/statusbarmanager.cxx 
b/framework/source/uielement/statusbarmanager.cxx
index 386b4a4a528d..d94e8a5bec40 100644
--- a/framework/source/uielement/statusbarmanager.cxx
+++ b/framework/source/uielement/statusbarmanager.cxx
@@ -301,7 +301,7 @@ void StatusBarManager::CreateControllers()
         rtl::Reference<StatusbarItem> pStatusbarItem
             = new StatusbarItem(m_pStatusBar, nId, aCommandURL);
 
-        std::vector< uno::Any > aPropVector
+        uno::Sequence<uno::Any> aArgs
         {
             uno::Any(comphelper::makePropertyValue(u"CommandURL"_ustr, 
aCommandURL)),
             uno::Any(comphelper::makePropertyValue(u"ModuleIdentifier"_ustr, 
u""_ustr)),
@@ -316,8 +316,6 @@ void StatusBarManager::CreateControllers()
                 u"StatusbarItem"_ustr, 
uno::Reference<ui::XStatusbarItem>(pStatusbarItem)))
         };
 
-        uno::Sequence< uno::Any > aArgs( comphelper::containerToSequence( 
aPropVector ) );
-
         // 1) UNO Statusbar controllers, registered in Controllers.xcu
         if ( m_xStatusbarControllerFactory.is() &&
              m_xStatusbarControllerFactory->hasController( aCommandURL, 
u""_ustr ))

Reply via email to