From 254eb4186a286785baa58d2c1f8fe47ced608a34 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Jul 2019 17:48:22 +0200 Subject: Improved loplugin:stringconstant (now that GCC 7 supports it): svgio Change-Id: I998fb299c52766dc7240926af69ce25347f79505 Reviewed-on: https://gerrit.libreoffice.org/76643 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- svgio/source/svgreader/svgtoken.cxx | 4 ++-- svgio/source/svguno/xsvgparser.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/svgio/source/svgreader/svgtoken.cxx b/svgio/source/svgreader/svgtoken.cxx index 6215cc0c6db5..9e286c128d09 100644 --- a/svgio/source/svgreader/svgtoken.cxx +++ b/svgio/source/svgreader/svgtoken.cxx @@ -355,12 +355,12 @@ namespace svgio const OUString getStrTitle() { - return OUString(aSVGStrTitle); + return aSVGStrTitle; } const OUString getStrDesc() { - return OUString(aSVGStrDesc); + return aSVGStrDesc; } } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/source/svguno/xsvgparser.cxx b/svgio/source/svguno/xsvgparser.cxx index 57c1c81ed28f..f7fbcc59cf0b 100644 --- a/svgio/source/svguno/xsvgparser.cxx +++ b/svgio/source/svguno/xsvgparser.cxx @@ -86,7 +86,7 @@ namespace svgio OUString XSvgParser_getImplementationName() { - return OUString( "svgio::svgreader::XSvgParser" ); + return "svgio::svgreader::XSvgParser"; } uno::Reference< uno::XInterface > XSvgParser_createInstance(const uno::Reference< uno::XComponentContext >& context) -- cgit