summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMani Kumar <manid2.work@gmail.com>2021-03-17 22:50:33 +0530
committerMike Kaganski <mike.kaganski@collabora.com>2021-03-18 07:29:56 +0100
commitbd43c754d3a6977fc2de80bce27d4045046cb32f (patch)
tree4176329f6e01c82424d1ec21dd8585bf7dac110f
parent80da19ae298b4b4d8802906f88fde0c0f9348765 (diff)
tdf#88205: Use initializer_list ctor in css::uno::Sequence
Change-Id: I95aaefa11c733f5c020600cf13510af1bc9c0de7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112652 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--xmlhelp/source/cxxhelp/provider/content.cxx4
-rw-r--r--xmlscript/source/xmlflat_imexp/xmlbas_export.cxx6
-rw-r--r--xmlsecurity/source/component/certificatecontainer.cxx3
3 files changed, 4 insertions, 9 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/content.cxx b/xmlhelp/source/cxxhelp/provider/content.cxx
index f16c6b880471..1dc5347f2d1e 100644
--- a/xmlhelp/source/cxxhelp/provider/content.cxx
+++ b/xmlhelp/source/cxxhelp/provider/content.cxx
@@ -105,9 +105,7 @@ OUString SAL_CALL Content::getImplementationName()
// virtual
uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
{
- uno::Sequence<OUString> aSNS { "com.sun.star.ucb.CHelpContent" };
-
- return aSNS;
+ return { "com.sun.star.ucb.CHelpContent" };
}
// XContent methods.
diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx
index fcec0985dbec..3f0351a1f97e 100644
--- a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx
+++ b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx
@@ -331,8 +331,7 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& /
Sequence< OUString > XMLBasicExporter::getSupportedServiceNames( )
{
- Sequence< OUString > aNames { "com.sun.star.document.XMLBasicExporter" };
- return aNames;
+ return { "com.sun.star.document.XMLBasicExporter" };
}
// XMLOasisBasicExporter
@@ -355,8 +354,7 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& /
Sequence< OUString > XMLOasisBasicExporter::getSupportedServiceNames( )
{
- Sequence< OUString > aNames { "com.sun.star.document.XMLOasisBasicExporter" };
- return aNames;
+ return { "com.sun.star.document.XMLOasisBasicExporter" };
}
} // namespace xmlscript
diff --git a/xmlsecurity/source/component/certificatecontainer.cxx b/xmlsecurity/source/component/certificatecontainer.cxx
index 8f921d881715..e311b1b600f8 100644
--- a/xmlsecurity/source/component/certificatecontainer.cxx
+++ b/xmlsecurity/source/component/certificatecontainer.cxx
@@ -138,8 +138,7 @@ CertificateContainer::supportsService( const OUString& ServiceName )
Sequence< OUString > SAL_CALL
CertificateContainer::getSupportedServiceNames( )
{
- Sequence< OUString > aRet { "com.sun.star.security.CertificateContainer" };
- return aRet;
+ return { "com.sun.star.security.CertificateContainer" };
}
namespace