summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorHieronymous <sudk1896@gmail.com>2016-10-14 18:54:30 +0530
committerJulien Nabet <serval2412@yahoo.fr>2016-10-16 11:00:34 +0000
commitf2c3efb124f12f6087b2304c5c55f202b0d41f9a (patch)
tree62f11554509a8ec424797e10cc4478443f2a6d30 /framework
parentad59a9a9cd1e48fa5120c98930f49fd02551185c (diff)
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: I5b484c6f6e950a59e811da818be8a5e1e6cfc65d Reviewed-on: https://gerrit.libreoffice.org/29827 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uiconfiguration/moduleuiconfigurationmanager.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/recentfilesmenucontroller.cxx3
5 files changed, 5 insertions, 10 deletions
diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
index 20c62780f6b8..610eed6be2a1 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 { "com.sun.star.ui.ModuleUIConfigurationManager" };
- return aSeq;
+ return {"com.sun.star.ui.ModuleUIConfigurationManager"};
}
// XComponent
diff --git a/framework/source/uiconfiguration/uiconfigurationmanager.cxx b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
index 33b7cd1a7ad0..b798e2e0c553 100644
--- a/framework/source/uiconfiguration/uiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/uiconfigurationmanager.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 { "com.sun.star.ui.UIConfigurationManager" };
- return aSeq;
+ return {"com.sun.star.ui.UIConfigurationManager"};
}
explicit UIConfigurationManager( const css::uno::Reference< css::uno::XComponentContext > & rxContext );
diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx
index cc2a6052396d..614df9f71df0 100644
--- a/framework/source/uiconfiguration/windowstateconfiguration.cxx
+++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx
@@ -1284,8 +1284,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.WindowStateConfiguration" };
- return aSeq;
+ return {"com.sun.star.ui.WindowStateConfiguration"};
}
// XNameAccess
diff --git a/framework/source/uielement/controlmenucontroller.cxx b/framework/source/uielement/controlmenucontroller.cxx
index a124f2eecc57..c5492482b22a 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 { "com.sun.star.frame.PopupMenuController" };
- return aSeq;
+ return {"com.sun.star.frame.PopupMenuController"};
}
// XPopupMenuController
diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx
index 786ef69a44bd..0c9f54d6ee21 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 { "com.sun.star.frame.PopupMenuController" };
- return aSeq;
+ return {"com.sun.star.frame.PopupMenuController"};
}
// XStatusListener