diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-30 17:49:49 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-31 12:55:55 +0200 |
commit | fee4b54d1c0eaf37dc1a08e4570642028a5c19fb (patch) | |
tree | 7ac907885922212f530eea15b5f25de8fec0d531 /sax | |
parent | ef59252a7a3e9474569710866ab4ff5c1225cff7 (diff) |
Improved loplugin:stringconstant (now that GCC 7 supports it): sax
Change-Id: I2b8122f9633a0c4450e7a453abdb15f14c16d178
Reviewed-on: https://gerrit.libreoffice.org/76655
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/expatwrap/sax_expat.cxx | 2 | ||||
-rw-r--r-- | sax/source/expatwrap/saxwriter.cxx | 2 | ||||
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 2 | ||||
-rw-r--r-- | sax/source/fastparser/legacyfastparser.cxx | 2 | ||||
-rw-r--r-- | sax/source/tools/converter.cxx | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx index 2ba000328529..87225fac08dd 100644 --- a/sax/source/expatwrap/sax_expat.cxx +++ b/sax/source/expatwrap/sax_expat.cxx @@ -518,7 +518,7 @@ void SaxExpatParser::setLocale( const Locale & ) // XServiceInfo OUString SaxExpatParser::getImplementationName() { - return OUString("com.sun.star.comp.extensions.xml.sax.ParserExpat"); + return "com.sun.star.comp.extensions.xml.sax.ParserExpat"; } // XServiceInfo diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx index 52160629f574..321c87b2e28b 100644 --- a/sax/source/expatwrap/saxwriter.cxx +++ b/sax/source/expatwrap/saxwriter.cxx @@ -1043,7 +1043,7 @@ bool isFirstCharWhitespace( const sal_Unicode *p ) throw() // XServiceInfo OUString SAXWriter::getImplementationName() { - return OUString("com.sun.star.extensions.xml.sax.Writer"); + return "com.sun.star.extensions.xml.sax.Writer"; } // XServiceInfo diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 67f0f23b7bea..4f1641f80b76 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -1401,7 +1401,7 @@ void FastSaxParser::setNamespaceHandler( const uno::Reference< css::xml::sax::XF OUString FastSaxParser::getImplementationName() { - return OUString("com.sun.star.comp.extensions.xml.sax.FastParser"); + return "com.sun.star.comp.extensions.xml.sax.FastParser"; } sal_Bool FastSaxParser::supportsService( const OUString& ServiceName ) diff --git a/sax/source/fastparser/legacyfastparser.cxx b/sax/source/fastparser/legacyfastparser.cxx index 53b3ac8ef78c..13dfc3b1d9bf 100644 --- a/sax/source/fastparser/legacyfastparser.cxx +++ b/sax/source/fastparser/legacyfastparser.cxx @@ -357,7 +357,7 @@ void SaxLegacyFastParser::setLocale( const Locale &locale ) OUString SaxLegacyFastParser::getImplementationName() { - return OUString("com.sun.star.comp.extensions.xml.sax.LegacyFastParser"); + return "com.sun.star.comp.extensions.xml.sax.LegacyFastParser"; } sal_Bool SaxLegacyFastParser::supportsService(const OUString& ServiceName) diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index cfd3b3083d40..956cdc097348 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -427,12 +427,12 @@ void Converter::convertMeasure( OUStringBuffer& rBuffer, static OUString getTrueString() { - return OUString( "true" ); + return "true"; } static OUString getFalseString() { - return OUString( "false" ); + return "false"; } /** convert string to boolean */ |