framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx | 3 +-- framework/source/uiconfiguration/uiconfigurationmanager.cxx | 3 +-- framework/source/uiconfiguration/windowstateconfiguration.cxx | 3 +-- framework/source/uielement/controlmenucontroller.cxx | 3 +-- framework/source/uielement/recentfilesmenucontroller.cxx | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-)
New commits: commit f2c3efb124f12f6087b2304c5c55f202b0d41f9a Author: Hieronymous <sudk1...@gmail.com> Date: Fri Oct 14 18:54:30 2016 +0530 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 <serval2...@yahoo.fr> Tested-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx index 20c6278..610eed6 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 33b7cd1..b798e2e 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 cc2a605..614df9f 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 a124f2e..c549248 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 786ef69..0c9f54d 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits