summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-11-15 12:17:19 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-15 11:31:23 +0000
commit54d22957bc241fc5867fa1c720cf1266133e4e90 (patch)
treea94c9008ccbe953226a479a875e01119d77d9402 /sax
parent8e234c5b7d5bae66c544e581bee5770f3f83dd81 (diff)
use initialiser for Sequence<OUString>
performed using: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I4da56c80fa09bfc1e8f868794001e9921431e09f Reviewed-on: https://gerrit.libreoffice.org/19968 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.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 71bb2575818a..be80a8005a5a 100644
--- a/sax/source/expatwrap/sax_expat.cxx
+++ b/sax/source/expatwrap/sax_expat.cxx
@@ -566,8 +566,7 @@ sal_Bool SaxExpatParser::supportsService(const OUString& ServiceName) throw (std
// XServiceInfo
css::uno::Sequence< OUString > SaxExpatParser::getSupportedServiceNames() throw (std::exception)
{
- css::uno::Sequence<OUString> seq(1);
- seq[0] = "com.sun.star.xml.sax.Parser";
+ css::uno::Sequence<OUString> seq { "com.sun.star.xml.sax.Parser" };
return seq;
}
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx
index 2c5c56bee475..c9ad1222e090 100644
--- a/sax/source/expatwrap/saxwriter.cxx
+++ b/sax/source/expatwrap/saxwriter.cxx
@@ -1010,8 +1010,7 @@ sal_Bool SAXWriter::supportsService(const OUString& ServiceName) throw(std::exce
// XServiceInfo
Sequence< OUString > SAXWriter::getSupportedServiceNames() throw (std::exception)
{
- Sequence<OUString> seq(1);
- seq[0] = "com.sun.star.xml.sax.Writer";
+ Sequence<OUString> seq { "com.sun.star.xml.sax.Writer" };
return seq;
}
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 3c353d95bd53..1978a5451051 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -1355,8 +1355,7 @@ sal_Bool FastSaxParser::supportsService( const OUString& ServiceName )
uno::Sequence<OUString> FastSaxParser::getSupportedServiceNames()
throw (uno::RuntimeException, std::exception)
{
- Sequence<OUString> seq(1);
- seq[0] = "com.sun.star.xml.sax.FastParser";
+ Sequence<OUString> seq { "com.sun.star.xml.sax.FastParser" };
return seq;
}