summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/accelerators/documentacceleratorconfiguration.cxx3
-rw-r--r--framework/source/accelerators/globalacceleratorconfiguration.cxx3
-rw-r--r--framework/source/accelerators/moduleacceleratorconfiguration.cxx3
-rw-r--r--framework/source/fwi/classes/protocolhandlercache.cxx3
-rw-r--r--framework/source/jobs/jobdispatch.cxx3
-rw-r--r--framework/source/jobs/jobexecutor.cxx3
-rw-r--r--framework/source/loadenv/loadenv.cxx6
-rw-r--r--framework/source/services/autorecovery.cxx3
-rw-r--r--framework/source/services/desktop.cxx3
-rw-r--r--framework/source/services/frame.cxx3
-rw-r--r--framework/source/services/modulemanager.cxx3
-rw-r--r--framework/source/services/pathsettings.cxx3
-rw-r--r--framework/source/services/sessionlistener.cxx3
-rw-r--r--framework/source/services/substitutepathvars.cxx3
-rw-r--r--framework/source/services/tabwindowservice.cxx3
-rw-r--r--framework/source/services/taskcreatorsrv.cxx3
-rw-r--r--framework/source/services/urltransformer.cxx3
-rw-r--r--framework/source/uiconfiguration/moduleuicfgsupplier.cxx3
-rw-r--r--framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx3
-rw-r--r--framework/source/uiconfiguration/uicategorydescription.cxx3
-rw-r--r--framework/source/uiconfiguration/uiconfigurationmanager.cxx3
-rw-r--r--framework/source/uiconfiguration/windowstateconfiguration.cxx3
-rw-r--r--framework/source/uielement/controlmenucontroller.cxx3
-rw-r--r--framework/source/uielement/objectmenucontroller.cxx3
-rw-r--r--framework/source/uielement/recentfilesmenucontroller.cxx3
-rw-r--r--framework/source/uielement/saveasmenucontroller.cxx3
-rw-r--r--framework/source/uielement/toolbarmanager.cxx3
-rw-r--r--framework/source/uifactory/addonstoolbarfactory.cxx3
-rw-r--r--framework/source/uifactory/statusbarfactory.cxx3
-rw-r--r--framework/source/uifactory/toolbarfactory.cxx3
-rw-r--r--framework/source/uifactory/uicontrollerfactory.cxx9
-rw-r--r--framework/source/uifactory/uielementfactorymanager.cxx3
-rw-r--r--framework/source/uifactory/windowcontentfactorymanager.cxx3
33 files changed, 36 insertions, 72 deletions
diff --git a/framework/source/accelerators/documentacceleratorconfiguration.cxx b/framework/source/accelerators/documentacceleratorconfiguration.cxx
index 3aaf2c192aaf..634d1a105779 100644
--- a/framework/source/accelerators/documentacceleratorconfiguration.cxx
+++ b/framework/source/accelerators/documentacceleratorconfiguration.cxx
@@ -87,8 +87,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.DocumentAcceleratorConfiguration";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.DocumentAcceleratorConfiguration" };
return aSeq;
}
diff --git a/framework/source/accelerators/globalacceleratorconfiguration.cxx b/framework/source/accelerators/globalacceleratorconfiguration.cxx
index cd48610c0fbe..942c2f0d65ea 100644
--- a/framework/source/accelerators/globalacceleratorconfiguration.cxx
+++ b/framework/source/accelerators/globalacceleratorconfiguration.cxx
@@ -72,8 +72,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.GlobalAcceleratorConfiguration";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.GlobalAcceleratorConfiguration" };
return aSeq;
}
diff --git a/framework/source/accelerators/moduleacceleratorconfiguration.cxx b/framework/source/accelerators/moduleacceleratorconfiguration.cxx
index 582a1ad82580..fb1b86eb6664 100644
--- a/framework/source/accelerators/moduleacceleratorconfiguration.cxx
+++ b/framework/source/accelerators/moduleacceleratorconfiguration.cxx
@@ -86,8 +86,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.ModuleAcceleratorConfiguration";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ModuleAcceleratorConfiguration" };
return aSeq;
}
diff --git a/framework/source/fwi/classes/protocolhandlercache.cxx b/framework/source/fwi/classes/protocolhandlercache.cxx
index dde6ceba0886..ebbc6e8f925c 100644
--- a/framework/source/fwi/classes/protocolhandlercache.cxx
+++ b/framework/source/fwi/classes/protocolhandlercache.cxx
@@ -182,8 +182,7 @@ HandlerCFGAccess::HandlerCFGAccess( const OUString& sPackage )
: ConfigItem(sPackage)
, m_pCache(nullptr)
{
- css::uno::Sequence< OUString > lListenPaths(1);
- lListenPaths[0] = SETNAME_HANDLER;
+ css::uno::Sequence< OUString > lListenPaths { SETNAME_HANDLER };
EnableNotification(lListenPaths);
}
diff --git a/framework/source/jobs/jobdispatch.cxx b/framework/source/jobs/jobdispatch.cxx
index c45364d209a4..07fcef45e691 100644
--- a/framework/source/jobs/jobdispatch.cxx
+++ b/framework/source/jobs/jobdispatch.cxx
@@ -105,8 +105,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.ProtocolHandler";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.ProtocolHandler" };
return aSeq;
}
diff --git a/framework/source/jobs/jobexecutor.cxx b/framework/source/jobs/jobexecutor.cxx
index b637b66bc200..7091256b790f 100644
--- a/framework/source/jobs/jobexecutor.cxx
+++ b/framework/source/jobs/jobexecutor.cxx
@@ -101,8 +101,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.task.JobExecutor";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.task.JobExecutor" };
return aSeq;
}
diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx
index 1168f04df6d2..0bed59228682 100644
--- a/framework/source/loadenv/loadenv.cxx
+++ b/framework/source/loadenv/loadenv.cxx
@@ -867,8 +867,7 @@ bool LoadEnv::impl_handleContent()
// <- SAFE -----------------------------------
// query
- css::uno::Sequence< OUString > lTypeReg(1);
- lTypeReg[0] = sType;
+ css::uno::Sequence< OUString > lTypeReg { sType };
css::uno::Sequence< css::beans::NamedValue > lQuery { { PROP_TYPES, css::uno::makeAny(lTypeReg) } };
@@ -1154,8 +1153,7 @@ css::uno::Reference< css::uno::XInterface > LoadEnv::impl_searchLoader()
aReadLock.clear();
// <- SAFE -----------------------------------
- css::uno::Sequence< OUString > lTypesReg(1);
- lTypesReg[0] = sType;
+ css::uno::Sequence< OUString > lTypesReg { sType };
css::uno::Sequence< css::beans::NamedValue > lQuery { { PROP_TYPES, css::uno::makeAny(lTypesReg) } };
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index bcd55bc417d7..9c90fae0ddb8 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -468,8 +468,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.AutoRecovery";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.AutoRecovery" };
return aSeq;
}
diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx
index 948e91e6e522..edbadd89ea16 100644
--- a/framework/source/services/desktop.cxx
+++ b/framework/source/services/desktop.cxx
@@ -83,8 +83,7 @@ sal_Bool SAL_CALL Desktop::supportsService(OUString const & ServiceName)
css::uno::Sequence<OUString> SAL_CALL Desktop::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.Desktop";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.Desktop" };
return aSeq;
}
diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx
index f68f2d39d8e1..754768e7d47b 100644
--- a/framework/source/services/frame.cxx
+++ b/framework/source/services/frame.cxx
@@ -168,8 +168,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.Frame";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.Frame" };
return aSeq;
}
diff --git a/framework/source/services/modulemanager.cxx b/framework/source/services/modulemanager.cxx
index a41a1cc3eeb5..942e6cf32fdc 100644
--- a/framework/source/services/modulemanager.cxx
+++ b/framework/source/services/modulemanager.cxx
@@ -170,8 +170,7 @@ sal_Bool ModuleManager::supportsService(OUString const & ServiceName)
css::uno::Sequence< OUString > ModuleManager::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.frame.ModuleManager";
+ css::uno::Sequence< OUString > s { "com.sun.star.frame.ModuleManager" };
return s;
}
diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx
index 91160df00f86..83543c69c960 100644
--- a/framework/source/services/pathsettings.cxx
+++ b/framework/source/services/pathsettings.cxx
@@ -200,8 +200,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.util.PathSettings";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.util.PathSettings" };
return aSeq;
}
diff --git a/framework/source/services/sessionlistener.cxx b/framework/source/services/sessionlistener.cxx
index e3fdf1c59582..05c086d74792 100644
--- a/framework/source/services/sessionlistener.cxx
+++ b/framework/source/services/sessionlistener.cxx
@@ -126,8 +126,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.SessionListener";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.SessionListener" };
return aSeq;
}
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx
index ef5b9698ec13..2046631b0e0b 100644
--- a/framework/source/services/substitutepathvars.cxx
+++ b/framework/source/services/substitutepathvars.cxx
@@ -245,8 +245,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.util.PathSubstitution";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.util.PathSubstitution" };
return aSeq;
}
diff --git a/framework/source/services/tabwindowservice.cxx b/framework/source/services/tabwindowservice.cxx
index 14007a6346bd..dde0162b3dcc 100644
--- a/framework/source/services/tabwindowservice.cxx
+++ b/framework/source/services/tabwindowservice.cxx
@@ -115,8 +115,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.dialogs.TabContainerWindow";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.dialogs.TabContainerWindow" };
return aSeq;
}
diff --git a/framework/source/services/taskcreatorsrv.cxx b/framework/source/services/taskcreatorsrv.cxx
index 7e8fa63944e5..d46b9ba41bee 100644
--- a/framework/source/services/taskcreatorsrv.cxx
+++ b/framework/source/services/taskcreatorsrv.cxx
@@ -81,8 +81,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.TaskCreator";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.TaskCreator" };
return aSeq;
}
diff --git a/framework/source/services/urltransformer.cxx b/framework/source/services/urltransformer.cxx
index 7363bfba0e05..21b43b4e5bd2 100644
--- a/framework/source/services/urltransformer.cxx
+++ b/framework/source/services/urltransformer.cxx
@@ -54,8 +54,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.util.URLTransformer";
+ css::uno::Sequence< OUString > aRet { "com.sun.star.util.URLTransformer" };
return aRet;
}
diff --git a/framework/source/uiconfiguration/moduleuicfgsupplier.cxx b/framework/source/uiconfiguration/moduleuicfgsupplier.cxx
index 1469fa345664..213daa5a50a7 100644
--- a/framework/source/uiconfiguration/moduleuicfgsupplier.cxx
+++ b/framework/source/uiconfiguration/moduleuicfgsupplier.cxx
@@ -80,8 +80,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.ModuleUIConfigurationManagerSupplier";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ModuleUIConfigurationManagerSupplier" };
return aSeq;
}
diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
index 48e1845a5d65..b862ad810164 100644
--- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
@@ -95,8 +95,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.ModuleUIConfigurationManager";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ModuleUIConfigurationManager" };
return aSeq;
}
diff --git a/framework/source/uiconfiguration/uicategorydescription.cxx b/framework/source/uiconfiguration/uicategorydescription.cxx
index 704343a3e8fe..0f8927124922 100644
--- a/framework/source/uiconfiguration/uicategorydescription.cxx
+++ b/framework/source/uiconfiguration/uicategorydescription.cxx
@@ -403,8 +403,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.UICategoryDescription";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.UICategoryDescription" };
return aSeq;
}
diff --git a/framework/source/uiconfiguration/uiconfigurationmanager.cxx b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
index 6232f9c108fd..c197f0e74ae3 100644
--- a/framework/source/uiconfiguration/uiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
@@ -79,8 +79,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.UIConfigurationManager";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.UIConfigurationManager" };
return aSeq;
}
diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx
index fcf5eb32a399..4082f7e1637f 100644
--- a/framework/source/uiconfiguration/windowstateconfiguration.cxx
+++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx
@@ -1299,8 +1299,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.WindowStateConfiguration";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.WindowStateConfiguration" };
return aSeq;
}
diff --git a/framework/source/uielement/controlmenucontroller.cxx b/framework/source/uielement/controlmenucontroller.cxx
index dc9c604a2ad6..0d16b4aa3acf 100644
--- a/framework/source/uielement/controlmenucontroller.cxx
+++ b/framework/source/uielement/controlmenucontroller.cxx
@@ -197,8 +197,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.PopupMenuController";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuController" };
return aSeq;
}
diff --git a/framework/source/uielement/objectmenucontroller.cxx b/framework/source/uielement/objectmenucontroller.cxx
index ddc90894d3af..c2c8960f5c8b 100644
--- a/framework/source/uielement/objectmenucontroller.cxx
+++ b/framework/source/uielement/objectmenucontroller.cxx
@@ -75,8 +75,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.PopupMenuController";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuController" };
return aSeq;
}
diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx
index a86995d903ff..9c3921f8e85e 100644
--- a/framework/source/uielement/recentfilesmenucontroller.cxx
+++ b/framework/source/uielement/recentfilesmenucontroller.cxx
@@ -79,8 +79,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.PopupMenuController";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuController" };
return aSeq;
}
diff --git a/framework/source/uielement/saveasmenucontroller.cxx b/framework/source/uielement/saveasmenucontroller.cxx
index fe6aeb67b8c0..d056be277eec 100644
--- a/framework/source/uielement/saveasmenucontroller.cxx
+++ b/framework/source/uielement/saveasmenucontroller.cxx
@@ -66,8 +66,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.PopupMenuController";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuController" };
return aSeq;
}
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx
index ecc370886d9b..a60589b9561d 100644
--- a/framework/source/uielement/toolbarmanager.cxx
+++ b/framework/source/uielement/toolbarmanager.cxx
@@ -2178,8 +2178,7 @@ bool ToolBarManager::impl_RetrieveShortcutsFromConfiguration(
try
{
css::awt::KeyEvent aKeyEvent;
- Sequence< OUString > aCommands(1);
- aCommands[0] = rCommand;
+ Sequence< OUString > aCommands { rCommand };
Sequence< Any > aSeqKeyCode( rAccelCfg->getPreferredKeyEventsForCommandList( aCommands ) );
if( aSeqKeyCode.getLength() == 1 )
diff --git a/framework/source/uifactory/addonstoolbarfactory.cxx b/framework/source/uifactory/addonstoolbarfactory.cxx
index 4b6b3f728014..11be46047e68 100644
--- a/framework/source/uifactory/addonstoolbarfactory.cxx
+++ b/framework/source/uifactory/addonstoolbarfactory.cxx
@@ -72,8 +72,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.ToolBarFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ToolBarFactory" };
return aSeq;
}
diff --git a/framework/source/uifactory/statusbarfactory.cxx b/framework/source/uifactory/statusbarfactory.cxx
index 3faa7815574c..0741348131f5 100644
--- a/framework/source/uifactory/statusbarfactory.cxx
+++ b/framework/source/uifactory/statusbarfactory.cxx
@@ -57,8 +57,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.StatusBarFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.StatusBarFactory" };
return aSeq;
}
diff --git a/framework/source/uifactory/toolbarfactory.cxx b/framework/source/uifactory/toolbarfactory.cxx
index 8f4bd096eae0..ceccc552b80c 100644
--- a/framework/source/uifactory/toolbarfactory.cxx
+++ b/framework/source/uifactory/toolbarfactory.cxx
@@ -55,8 +55,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.ToolBarFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ToolBarFactory" };
return aSeq;
}
diff --git a/framework/source/uifactory/uicontrollerfactory.cxx b/framework/source/uifactory/uicontrollerfactory.cxx
index 4bc329910187..1d25f44b6f9e 100644
--- a/framework/source/uifactory/uicontrollerfactory.cxx
+++ b/framework/source/uifactory/uicontrollerfactory.cxx
@@ -263,8 +263,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.PopupMenuControllerFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuControllerFactory" };
return aSeq;
}
@@ -315,8 +314,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.ToolbarControllerFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.ToolbarControllerFactory" };
return aSeq;
}
@@ -367,8 +365,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.frame.StatusbarControllerFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.StatusbarControllerFactory" };
return aSeq;
}
diff --git a/framework/source/uifactory/uielementfactorymanager.cxx b/framework/source/uifactory/uielementfactorymanager.cxx
index 3f009919cdef..70fa22398130 100644
--- a/framework/source/uifactory/uielementfactorymanager.cxx
+++ b/framework/source/uifactory/uielementfactorymanager.cxx
@@ -374,8 +374,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.UIElementFactoryManager";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.UIElementFactoryManager" };
return aSeq;
}
diff --git a/framework/source/uifactory/windowcontentfactorymanager.cxx b/framework/source/uifactory/windowcontentfactorymanager.cxx
index e521ff1d108d..ebbc036317c6 100644
--- a/framework/source/uifactory/windowcontentfactorymanager.cxx
+++ b/framework/source/uifactory/windowcontentfactorymanager.cxx
@@ -66,8 +66,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.ui.WindowContentFactoryManager";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.WindowContentFactoryManager" };
return aSeq;
}