From c1e157b58f3e5e907f61008387973451b7ba31dc Mon Sep 17 00:00:00 2001 From: nienzu Date: Sat, 23 May 2020 17:32:13 +0800 Subject: tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor Change-Id: Ic61c1d5829b510a71b8d444f29ffed36ee540ea8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94717 Tested-by: Jenkins Reviewed-by: Michael Stahl --- cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx | 3 +-- cppuhelper/source/typemanager.cxx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'cppuhelper') diff --git a/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx b/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx index 4de84ba3a28b..62cbd19bbb66 100644 --- a/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx +++ b/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx @@ -386,8 +386,7 @@ OUString SAL_CALL getImplementationName() { css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() { - css::uno::Sequence< OUString > s { "test.cppuhelper.propertysetmixin.CppSupplier") }; - return s; + return { "test.cppuhelper.propertysetmixin.CppSupplier" }; } cppu::ImplementationEntry entries[] = { diff --git a/cppuhelper/source/typemanager.cxx b/cppuhelper/source/typemanager.cxx index 3a3866b60f6d..c03780b1e932 100644 --- a/cppuhelper/source/typemanager.cxx +++ b/cppuhelper/source/typemanager.cxx @@ -1899,8 +1899,7 @@ sal_Bool cppuhelper::TypeManager::supportsService( css::uno::Sequence< OUString > cppuhelper::TypeManager::getSupportedServiceNames() { - css::uno::Sequence names { "com.sun.star.reflection.TypeDescriptionManager" }; //TODO - return names; + return { "com.sun.star.reflection.TypeDescriptionManager" }; //TODO } css::uno::Any cppuhelper::TypeManager::getByHierarchicalName( -- cgit