[Libreoffice-commits] core.git: connectivity/source cppuhelper/qa cppuhelper/source cui/source dbaccess/source
nienzu (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jun 5 09:34:46 UTC 2020
connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx | 3 +--
connectivity/source/drivers/evoab2/NDriver.cxx | 3 +--
connectivity/source/drivers/evoab2/NResultSet.cxx | 3 +--
connectivity/source/drivers/macab/MacabDriver.cxx | 4 +---
connectivity/source/drivers/odbc/ODriver.cxx | 3 +--
connectivity/source/manager/mdrivermanager.cxx | 3 +--
cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx | 3 +--
cppuhelper/source/typemanager.cxx | 3 +--
cui/source/dialogs/colorpicker.cxx | 3 +--
dbaccess/source/core/dataaccess/databasecontext.cxx | 3 +--
dbaccess/source/filter/xml/dbloader2.cxx | 3 +--
11 files changed, 11 insertions(+), 23 deletions(-)
New commits:
commit c1e157b58f3e5e907f61008387973451b7ba31dc
Author: nienzu <tommy.wu at ossii.com.tw>
AuthorDate: Sat May 23 17:32:13 2020 +0800
Commit: Michael Stahl <michael.stahl at cib.de>
CommitDate: Fri Jun 5 11:34:10 2020 +0200
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 <michael.stahl at cib.de>
diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
index 7d3d34891783..7bc060ad174c 100644
--- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
+++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
@@ -840,8 +840,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA
Sequence< OUString > ODatabaseMetaDataResultSet::getSupportedServiceNames_Static( )
{
- Sequence<OUString> aSNS { "com.sun.star.sdbc.ResultSet" };
- return aSNS;
+ return Sequence<OUString>{ "com.sun.star.sdbc.ResultSet" };
}
OUString SAL_CALL ODatabaseMetaDataResultSet::getImplementationName( )
diff --git a/connectivity/source/drivers/evoab2/NDriver.cxx b/connectivity/source/drivers/evoab2/NDriver.cxx
index d7f4e376a9ab..0155fa6a611b 100644
--- a/connectivity/source/drivers/evoab2/NDriver.cxx
+++ b/connectivity/source/drivers/evoab2/NDriver.cxx
@@ -85,8 +85,7 @@ Sequence< OUString > OEvoabDriver::getSupportedServiceNames_Static( )
{
// which service is supported
// for more information @see com.sun.star.sdbc.Driver
- Sequence<OUString> aSNS { "com.sun.star.sdbc.Driver" };
- return aSNS;
+ return Sequence<OUString>{ "com.sun.star.sdbc.Driver" };
}
OUString SAL_CALL OEvoabDriver::getImplementationName( )
diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx
index 77d53939c1aa..a9c73a65b740 100644
--- a/connectivity/source/drivers/evoab2/NResultSet.cxx
+++ b/connectivity/source/drivers/evoab2/NResultSet.cxx
@@ -64,8 +64,7 @@ OUString SAL_CALL OEvoabResultSet::getImplementationName( )
Sequence< OUString > SAL_CALL OEvoabResultSet::getSupportedServiceNames( )
{
- Sequence< OUString > aSupported { "com.sun.star.sdbc.ResultSet" };
- return aSupported;
+ return { "com.sun.star.sdbc.ResultSet" };
}
sal_Bool SAL_CALL OEvoabResultSet::supportsService( const OUString& _rServiceName )
diff --git a/connectivity/source/drivers/macab/MacabDriver.cxx b/connectivity/source/drivers/macab/MacabDriver.cxx
index 7a130f364f85..9f6a1bec70ea 100644
--- a/connectivity/source/drivers/macab/MacabDriver.cxx
+++ b/connectivity/source/drivers/macab/MacabDriver.cxx
@@ -224,9 +224,7 @@ Sequence< OUString > MacabDriver::getSupportedServiceNames_Static( )
{
// which service is supported
// for more information @see com.sun.star.sdbc.Driver
- Sequence<OUString> aSNS { "com.sun.star.sdbc.Driver" };
-
- return aSNS;
+ return { "com.sun.star.sdbc.Driver" };
}
OUString SAL_CALL MacabDriver::getImplementationName( )
diff --git a/connectivity/source/drivers/odbc/ODriver.cxx b/connectivity/source/drivers/odbc/ODriver.cxx
index 376946d026f7..42dbff07ba95 100644
--- a/connectivity/source/drivers/odbc/ODriver.cxx
+++ b/connectivity/source/drivers/odbc/ODriver.cxx
@@ -66,8 +66,7 @@ OUString ODBCDriver::getImplementationName_Static( )
Sequence< OUString > ODBCDriver::getSupportedServiceNames_Static( )
{
- Sequence<OUString> aSNS { "com.sun.star.sdbc.Driver" };
- return aSNS;
+ return { "com.sun.star.sdbc.Driver" };
}
diff --git a/connectivity/source/manager/mdrivermanager.cxx b/connectivity/source/manager/mdrivermanager.cxx
index 275cbb51f221..3f66e0606baa 100644
--- a/connectivity/source/manager/mdrivermanager.cxx
+++ b/connectivity/source/manager/mdrivermanager.cxx
@@ -536,8 +536,7 @@ OUString OSDBCDriverManager::getImplementationName_static( )
Sequence< OUString > OSDBCDriverManager::getSupportedServiceNames_static( )
{
- Sequence< OUString > aSupported { getSingletonName_static() };
- return aSupported;
+ return { getSingletonName_static() };
}
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<OUString> names { "com.sun.star.reflection.TypeDescriptionManager" }; //TODO
- return names;
+ return { "com.sun.star.reflection.TypeDescriptionManager" }; //TODO
}
css::uno::Any cppuhelper::TypeManager::getByHierarchicalName(
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index 65f03fb3a046..d85213b3ee1c 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -1252,8 +1252,7 @@ Reference< XInterface > ColorPicker_createInstance( Reference< XComponentContext
Sequence< OUString > ColorPicker_getSupportedServiceNames()
{
- Sequence< OUString > seq { "com.sun.star.ui.dialogs.ColorPicker" };
- return seq;
+ return { "com.sun.star.ui.dialogs.ColorPicker" };
}
static const OUStringLiteral gsColorKey( "Color" );
diff --git a/dbaccess/source/core/dataaccess/databasecontext.cxx b/dbaccess/source/core/dataaccess/databasecontext.cxx
index c2c347698fa3..c7ddce73b48a 100644
--- a/dbaccess/source/core/dataaccess/databasecontext.cxx
+++ b/dbaccess/source/core/dataaccess/databasecontext.cxx
@@ -209,8 +209,7 @@ Reference< XInterface > ODatabaseContext::Create(const Reference< XComponentCont
Sequence< OUString > ODatabaseContext::getSupportedServiceNames_static()
{
- Sequence<OUString> aSNS { "com.sun.star.sdb.DatabaseContext" };
- return aSNS;
+ return { "com.sun.star.sdb.DatabaseContext" };
}
// XServiceInfo
diff --git a/dbaccess/source/filter/xml/dbloader2.cxx b/dbaccess/source/filter/xml/dbloader2.cxx
index 8546c693aac1..13ea50a900b9 100644
--- a/dbaccess/source/filter/xml/dbloader2.cxx
+++ b/dbaccess/source/filter/xml/dbloader2.cxx
@@ -201,8 +201,7 @@ Sequence< OUString > SAL_CALL DBTypeDetection::getSupportedServiceNames()
// ORegistryServiceManager_Static
Sequence< OUString > DBTypeDetection::getSupportedServiceNames_Static() throw( )
{
- Sequence<OUString> aSNS { "com.sun.star.document.ExtendedTypeDetection" };
- return aSNS;
+ return { "com.sun.star.document.ExtendedTypeDetection" };
}
} // namespace dbaxml
More information about the Libreoffice-commits
mailing list