From af896b031cf9ac2d35bdf6570c6a451fd00a0d1c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Jul 2019 17:43:36 +0200 Subject: Improved loplugin:stringconstant (now that GCC 7 supports it): xmlscript Change-Id: Ic294ce631c87f2a7ecbcec69f9ecd38183d7dd45 Reviewed-on: https://gerrit.libreoffice.org/76622 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- xmlscript/source/xml_helper/xml_impctx.cxx | 2 +- xmlscript/source/xmlflat_imexp/xmlbas_export.cxx | 4 ++-- xmlscript/source/xmlflat_imexp/xmlbas_import.cxx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'xmlscript') diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx index acdb002b6ec2..00a6de79a7af 100644 --- a/xmlscript/source/xml_helper/xml_impctx.cxx +++ b/xmlscript/source/xml_helper/xml_impctx.cxx @@ -54,7 +54,7 @@ Sequence< OUString > getSupportedServiceNames_DocumentHandlerImpl() OUString getImplementationName_DocumentHandlerImpl() { - return OUString( "com.sun.star.comp.xml.input.SaxDocumentHandler" ); + return "com.sun.star.comp.xml.input.SaxDocumentHandler"; } typedef std::unordered_map< OUString, sal_Int32 > t_OUString2LongMap; diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx index ed1ca3da901e..76a20aa3a5a5 100644 --- a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx +++ b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx @@ -337,7 +337,7 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& / OUString XMLBasicExporter::getImplementationName( ) { - return OUString( "com.sun.star.comp.xmlscript.XMLBasicExporter" ); + return "com.sun.star.comp.xmlscript.XMLBasicExporter"; } Sequence< OUString > XMLBasicExporter::getSupportedServiceNames( ) @@ -361,7 +361,7 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& / OUString XMLOasisBasicExporter::getImplementationName( ) { - return OUString( "com.sun.star.comp.xmlscript.XMLOasisBasicExporter" ); + return "com.sun.star.comp.xmlscript.XMLOasisBasicExporter"; } Sequence< OUString > XMLOasisBasicExporter::getSupportedServiceNames( ) diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx b/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx index 4c7b4bf39876..f39f4ffef3b4 100644 --- a/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx +++ b/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx @@ -594,7 +594,7 @@ void BasicImport::setDocumentLocator( const Reference< xml::sax::XLocator >& /*x OUString XMLBasicImporter::getImplementationName( ) { - return OUString( "com.sun.star.comp.xmlscript.XMLBasicImporter" ); + return "com.sun.star.comp.xmlscript.XMLBasicImporter"; } Sequence< OUString > XMLBasicImporter::getSupportedServiceNames( ) @@ -618,7 +618,7 @@ void BasicImport::setDocumentLocator( const Reference< xml::sax::XLocator >& /*x OUString XMLOasisBasicImporter::getImplementationName( ) { - return OUString( "com.sun.star.comp.xmlscript.XMLOasisBasicImporter" ); + return "com.sun.star.comp.xmlscript.XMLOasisBasicImporter"; } Sequence< OUString > XMLOasisBasicImporter::getSupportedServiceNames( ) -- cgit v1.2.3