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@cib.de>
diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
index 7d3d348..7bc060a 100644
--- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
+++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
@@ -840,8 +840,7 @@
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 d7f4e37..0155fa6 100644
--- a/connectivity/source/drivers/evoab2/NDriver.cxx
+++ b/connectivity/source/drivers/evoab2/NDriver.cxx
@@ -85,8 +85,7 @@
{
// 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 77d5393..a9c73a6 100644
--- a/connectivity/source/drivers/evoab2/NResultSet.cxx
+++ b/connectivity/source/drivers/evoab2/NResultSet.cxx
@@ -64,8 +64,7 @@
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 7a130f3..9f6a1be 100644
--- a/connectivity/source/drivers/macab/MacabDriver.cxx
+++ b/connectivity/source/drivers/macab/MacabDriver.cxx
@@ -224,9 +224,7 @@
{
// 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 376946d..42dbff0 100644
--- a/connectivity/source/drivers/odbc/ODriver.cxx
+++ b/connectivity/source/drivers/odbc/ODriver.cxx
@@ -66,8 +66,7 @@
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 275cbb5..3f66e06 100644
--- a/connectivity/source/manager/mdrivermanager.cxx
+++ b/connectivity/source/manager/mdrivermanager.cxx
@@ -536,8 +536,7 @@
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 4de84ba..62cbd19 100644
--- a/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx
+++ b/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx
@@ -386,8 +386,7 @@
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 3a3866b..c03780b 100644
--- a/cppuhelper/source/typemanager.cxx
+++ b/cppuhelper/source/typemanager.cxx
@@ -1899,8 +1899,7 @@
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 65f03fb..d85213b 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -1252,8 +1252,7 @@
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 c2c3476..c7ddce7 100644
--- a/dbaccess/source/core/dataaccess/databasecontext.cxx
+++ b/dbaccess/source/core/dataaccess/databasecontext.cxx
@@ -209,8 +209,7 @@
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 8546c69..13ea50a 100644
--- a/dbaccess/source/filter/xml/dbloader2.cxx
+++ b/dbaccess/source/filter/xml/dbloader2.cxx
@@ -201,8 +201,7 @@
// 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