tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Ice7c0ecc8ee05a5c3b0af458ceeee8191bdde322
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86752
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
diff --git a/accessibility/source/standard/vclxaccessibleheaderbar.cxx b/accessibility/source/standard/vclxaccessibleheaderbar.cxx
index 65558bf..9eb46e5 100644
--- a/accessibility/source/standard/vclxaccessibleheaderbar.cxx
+++ b/accessibility/source/standard/vclxaccessibleheaderbar.cxx
@@ -57,8 +57,7 @@
Sequence< OUString > VCLXAccessibleHeaderBar::getSupportedServiceNames()
{
Sequence<OUString> aNames { "com.sun.star.awt.AccessibleHeaderBar" };
return aNames;
return { "com.sun.star.awt.AccessibleHeaderBar" };
}
// =======XAccessibleContext=======
diff --git a/connectivity/source/drivers/firebird/Column.cxx b/connectivity/source/drivers/firebird/Column.cxx
index 31767bf..aa8abf9 100644
--- a/connectivity/source/drivers/firebird/Column.cxx
+++ b/connectivity/source/drivers/firebird/Column.cxx
@@ -45,9 +45,7 @@
css::uno::Sequence< OUString > SAL_CALL Column::getSupportedServiceNames( )
{
css::uno::Sequence< OUString > aSupported { "com.sun.star.sdbc.Firebird" };
return aSupported;
return { "com.sun.star.sdbc.Firebird" };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
index 69cf0ca..6f7f966 100644
--- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
+++ b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
@@ -148,8 +148,7 @@
Sequence< OUString > SAL_CALL OrdinalSuffixService::getSupportedServiceNames()
{
Sequence< OUString > aRet { cOrdinalSuffix };
return aRet;
return { cOrdinalSuffix };
}
}
diff --git a/sax/source/fastparser/legacyfastparser.cxx b/sax/source/fastparser/legacyfastparser.cxx
index 6399e50..6b11fbb 100644
--- a/sax/source/fastparser/legacyfastparser.cxx
+++ b/sax/source/fastparser/legacyfastparser.cxx
@@ -362,8 +362,7 @@
Sequence< OUString > SaxLegacyFastParser::getSupportedServiceNames()
{
Sequence<OUString> seq { "com.sun.star.xml.sax.LegacyFastParser" };
return seq;
return { "com.sun.star.xml.sax.LegacyFastParser" };
}
} //namespace
diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx
index 5a7ed99..fb66f4f 100644
--- a/sd/source/ui/unoidl/sddetect.cxx
+++ b/sd/source/ui/unoidl/sddetect.cxx
@@ -146,8 +146,7 @@
// XServiceInfo
Sequence< OUString > SAL_CALL SdFilterDetect::getSupportedServiceNames()
{
Sequence<OUString> seqServiceNames { "com.sun.star.frame.ExtendedTypeDetection" };
return seqServiceNames ;
return { "com.sun.star.frame.ExtendedTypeDetection" };
}
diff --git a/sd/source/ui/unoidl/unomodule.cxx b/sd/source/ui/unoidl/unomodule.cxx
index 813bfcd..0ea5527 100644
--- a/sd/source/ui/unoidl/unomodule.cxx
+++ b/sd/source/ui/unoidl/unomodule.cxx
@@ -115,8 +115,7 @@
uno::Sequence< OUString > SAL_CALL SdUnoModule::getSupportedServiceNames( )
{
uno::Sequence<OUString> aSeq { "com.sun.star.drawing.ModuleDispatcher" };
return aSeq;
return { "com.sun.star.drawing.ModuleDispatcher" };
}
diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx
index 05cbddb..97b0496 100644
--- a/stoc/source/security/file_policy.cxx
+++ b/stoc/source/security/file_policy.cxx
@@ -479,8 +479,7 @@
Sequence< OUString > FilePolicy::getSupportedServiceNames()
{
Sequence<OUString> aSNS { "com.sun.star.security.Policy" };
return aSNS;
return { "com.sun.star.security.Policy" };
}
} // namespace
diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
index 1b73543..dde6fcb 100644
--- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
+++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
@@ -173,8 +173,7 @@
css::uno::Sequence< OUString > Parser::getSupportedServiceNames()
{
css::uno::Sequence< OUString > s { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand" };
return s;
return { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand" };
}
css::uno::Reference< css::uri::XUriReference > Parser::parse(
diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
index 224d273..6f8624d 100644
--- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
+++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
@@ -384,8 +384,7 @@
css::uno::Sequence< OUString > Parser::getSupportedServiceNames()
{
css::uno::Sequence< OUString > s { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript" };
return s;
return { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript" };
}
css::uno::Reference< css::uri::XUriReference >
diff --git a/svl/source/numbers/supservs.cxx b/svl/source/numbers/supservs.cxx
index 307dbd1..30001d0 100644
--- a/svl/source/numbers/supservs.cxx
+++ b/svl/source/numbers/supservs.cxx
@@ -108,8 +108,7 @@
Sequence< OUString > SAL_CALL SvNumberFormatsSupplierServiceObject::getSupportedServiceNames( )
{
Sequence< OUString > aSupported { "com.sun.star.util.NumberFormatsSupplier" };
return aSupported;
return { "com.sun.star.util.NumberFormatsSupplier" };
}
Reference< XPropertySet > SAL_CALL SvNumberFormatsSupplierServiceObject::getNumberFormatSettings()
diff --git a/svtools/source/uno/addrtempuno.cxx b/svtools/source/uno/addrtempuno.cxx
index 7af43f8..3d3a8c4 100644
--- a/svtools/source/uno/addrtempuno.cxx
+++ b/svtools/source/uno/addrtempuno.cxx
@@ -101,8 +101,7 @@
css::uno::Sequence<OUString> SAL_CALL OAddressBookSourceDialogUno::getSupportedServiceNames()
{
css::uno::Sequence<OUString> aSupported { "com.sun.star.ui.AddressBookSourceDialog" };
return aSupported;
return { "com.sun.star.ui.AddressBookSourceDialog" };
}
diff --git a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
index a7b08f9..4eafe47 100644
--- a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
@@ -143,8 +143,7 @@
}
Sequence< OUString > SAL_CALL EnhancedCustomShapeEngine::getSupportedServiceNames()
{
Sequence<OUString> aRet { "com.sun.star.drawing.CustomShapeEngine" };
return aRet;
return { "com.sun.star.drawing.CustomShapeEngine" };
}
// XCustomShapeEngine
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx
index 3d22213..10b29b7f 100644
--- a/svx/source/tbxctrls/fontworkgallery.cxx
+++ b/svx/source/tbxctrls/fontworkgallery.cxx
@@ -406,8 +406,7 @@
Sequence< OUString > FontworkAlignmentControl::getSupportedServiceNames()
{
Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
return { "com.sun.star.frame.ToolbarController" };
}