summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorMesut Çifci <mesutcifci97@gmail.com>2020-01-15 11:33:29 +0300
committerStephan Bergmann <sbergman@redhat.com>2020-01-15 14:54:39 +0100
commitb8f02637131fcfa499a6397914fdf4687c88053d (patch)
tree24e88369d50dbb2ed519d99f6e06dc8c104d455b /sax
parent15abfe9ae976a0d940725cdd570facc372981393 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'sax')
-rw-r--r--sax/source/expatwrap/sax_expat.cxx3
-rw-r--r--sax/source/expatwrap/saxwriter.cxx3
-rw-r--r--sax/source/fastparser/fastparser.cxx3
3 files changed, 3 insertions, 6 deletions
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<OUString> 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<OUString> 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<OUString> FastSaxParser::getSupportedServiceNames()
{
- Sequence<OUString> seq { "com.sun.star.xml.sax.FastParser" };
- return seq;
+ return { "com.sun.star.xml.sax.FastParser" };
}
} // namespace sax_fastparser