summaryrefslogtreecommitdiff
path: root/framework/inc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-11-15 08:43:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-15 10:13:08 +0000
commit8e234c5b7d5bae66c544e581bee5770f3f83dd81 (patch)
tree7d78f03ce2231de4f727d1135449aeb8cba74e99 /framework/inc
parent3bdd176731c351638f541a37b94094124f3c9f52 (diff)
use initialiser syntax for Sequence<OUString>
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'framework/inc')
-rw-r--r--framework/inc/helper/statusindicatorfactory.hxx3
-rw-r--r--framework/inc/services/layoutmanager.hxx3
-rw-r--r--framework/inc/uiconfiguration/imagemanager.hxx3
-rw-r--r--framework/inc/uielement/uicommanddescription.hxx3
-rw-r--r--framework/inc/uifactory/menubarfactory.hxx3
5 files changed, 5 insertions, 10 deletions
diff --git a/framework/inc/helper/statusindicatorfactory.hxx b/framework/inc/helper/statusindicatorfactory.hxx
index 2067f169a6bc..f22e0e0c8fd1 100644
--- a/framework/inc/helper/statusindicatorfactory.hxx
+++ b/framework/inc/helper/statusindicatorfactory.hxx
@@ -209,8 +209,7 @@ class StatusIndicatorFactory : public ::cppu::WeakImplHelper<
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.StatusIndicatorFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.task.StatusIndicatorFactory" };
return aSeq;
}
diff --git a/framework/inc/services/layoutmanager.hxx b/framework/inc/services/layoutmanager.hxx
index 767186d1c032..e55f7ae19309 100644
--- a/framework/inc/services/layoutmanager.hxx
+++ b/framework/inc/services/layoutmanager.hxx
@@ -107,8 +107,7 @@ namespace framework
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.LayoutManager";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.LayoutManager" };
return aSeq;
}
diff --git a/framework/inc/uiconfiguration/imagemanager.hxx b/framework/inc/uiconfiguration/imagemanager.hxx
index fba820963309..8c46073d84e3 100644
--- a/framework/inc/uiconfiguration/imagemanager.hxx
+++ b/framework/inc/uiconfiguration/imagemanager.hxx
@@ -69,8 +69,7 @@ namespace framework
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.ImageManager";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ImageManager" };
return aSeq;
}
diff --git a/framework/inc/uielement/uicommanddescription.hxx b/framework/inc/uielement/uicommanddescription.hxx
index 4179474119c6..d57ae4a255c3 100644
--- a/framework/inc/uielement/uicommanddescription.hxx
+++ b/framework/inc/uielement/uicommanddescription.hxx
@@ -59,8 +59,7 @@ class UICommandDescription : private cppu::BaseMutex,
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.UICommandDescription";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.UICommandDescription" };
return aSeq;
}
diff --git a/framework/inc/uifactory/menubarfactory.hxx b/framework/inc/uifactory/menubarfactory.hxx
index f1007cfdbaa4..27401f889182 100644
--- a/framework/inc/uifactory/menubarfactory.hxx
+++ b/framework/inc/uifactory/menubarfactory.hxx
@@ -57,8 +57,7 @@ typedef ::cppu::WeakImplHelper<
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.UIElementFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.UIElementFactory" };
return aSeq;
}