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>
This commit is contained in:
Stephan Bergmann
2019-07-30 17:49:49 +02:00
parent ef59252a7a
commit fee4b54d1c
5 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 )

View File

@@ -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)

View File

@@ -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 */