[Libreoffice-commits] core.git: framework/source

kerem hallackerem at gmail.com
Wed Feb 3 08:26:55 UTC 2016


 framework/source/services/desktop.cxx                  |    3 +--
 framework/source/services/modulemanager.cxx            |    3 +--
 framework/source/uielement/thesaurusmenucontroller.cxx |    3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)

New commits:
commit 36c3229a2e7765901dc3c21da3b223eca33266a4
Author: kerem <hallackerem at gmail.com>
Date:   Tue Feb 2 15:21:41 2016 +0200

    tdf#88205 Delete 'css::uno::Sequence' in framework
    
    Change-Id: I66857f640e2e4c397b4f9baf7903356a0510c0b7
    Reviewed-on: https://gerrit.libreoffice.org/22035
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx
index 939d3ba..50bf49c 100644
--- a/framework/source/services/desktop.cxx
+++ b/framework/source/services/desktop.cxx
@@ -88,8 +88,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 { "com.sun.star.frame.Desktop" };
-    return aSeq;
+    return { "com.sun.star.frame.Desktop" };
 }
 
 void Desktop::constructorInit()
diff --git a/framework/source/services/modulemanager.cxx b/framework/source/services/modulemanager.cxx
index e558ed0..98e441e 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 { "com.sun.star.frame.ModuleManager" };
-    return s;
+    return { "com.sun.star.frame.ModuleManager" };
 }
 
 OUString SAL_CALL ModuleManager::identify(const css::uno::Reference< css::uno::XInterface >& xModule)
diff --git a/framework/source/uielement/thesaurusmenucontroller.cxx b/framework/source/uielement/thesaurusmenucontroller.cxx
index 41601e3..bf46b79 100644
--- a/framework/source/uielement/thesaurusmenucontroller.cxx
+++ b/framework/source/uielement/thesaurusmenucontroller.cxx
@@ -159,8 +159,7 @@ OUString ThesaurusMenuController::getImplementationName()
 css::uno::Sequence< OUString > ThesaurusMenuController::getSupportedServiceNames()
     throw ( css::uno::RuntimeException, std::exception )
 {
-    css::uno::Sequence<OUString> aRet { "com.sun.star.frame.PopupMenuController" };
-    return aRet;
+    return { "com.sun.star.frame.PopupMenuController" };
 }
 
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL


More information about the Libreoffice-commits mailing list