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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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 )
|
||||
|
@@ -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)
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user