From b8f02637131fcfa499a6397914fdf4687c88053d Mon Sep 17 00:00:00 2001 From: Mesut Çifci Date: Wed, 15 Jan 2020 11:33:29 +0300 Subject: tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor Change-Id: Ib58c66590c60175d7984af55d23b7c55a6a2383e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86828 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sax/source/expatwrap/sax_expat.cxx | 3 +-- sax/source/expatwrap/saxwriter.cxx | 3 +-- sax/source/fastparser/fastparser.cxx | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'sax') diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx index c55cea3f2d04..3daafda63547 100644 --- a/sax/source/expatwrap/sax_expat.cxx +++ b/sax/source/expatwrap/sax_expat.cxx @@ -530,8 +530,7 @@ sal_Bool SaxExpatParser::supportsService(const OUString& ServiceName) // XServiceInfo css::uno::Sequence< OUString > SaxExpatParser::getSupportedServiceNames() { - css::uno::Sequence seq { "com.sun.star.xml.sax.Parser" }; - return seq; + return { "com.sun.star.xml.sax.Parser" }; } diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx index ec59324524bf..f4f4c4bae142 100644 --- a/sax/source/expatwrap/saxwriter.cxx +++ b/sax/source/expatwrap/saxwriter.cxx @@ -1047,8 +1047,7 @@ sal_Bool SAXWriter::supportsService(const OUString& ServiceName) // XServiceInfo Sequence< OUString > SAXWriter::getSupportedServiceNames() { - Sequence seq { "com.sun.star.xml.sax.Writer" }; - return seq; + return { "com.sun.star.xml.sax.Writer" }; } void SAXWriter::startDocument() diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 2b843d03c74f..80bff5e9fef6 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -1419,8 +1419,7 @@ sal_Bool FastSaxParser::supportsService( const OUString& ServiceName ) uno::Sequence FastSaxParser::getSupportedServiceNames() { - Sequence seq { "com.sun.star.xml.sax.FastParser" }; - return seq; + return { "com.sun.star.xml.sax.FastParser" }; } } // namespace sax_fastparser -- cgit