From ab153c4142500a84c95b3dc90e0006a11a03fc0b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Jul 2019 17:53:56 +0200 Subject: Improved loplugin:stringconstant (now that GCC 7 supports it): idlc Change-Id: I53e4be7db68622b7ce283014874074004b83a8ba Reviewed-on: https://gerrit.libreoffice.org/76669 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- idlc/source/astexpression.cxx | 4 ++-- idlc/source/idlccompile.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'idlc/source') diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx index aab83ba58948..4ed35a8ef1f4 100644 --- a/idlc/source/astexpression.cxx +++ b/idlc/source/astexpression.cxx @@ -1169,9 +1169,9 @@ OString AstExpression::toString() return OString::number(m_exprValue->u.byval); case ET_boolean: if ( m_exprValue->u.lval == 0) - return OString("FALSE"); + return "FALSE"; else - return OString("TRUE"); + return "TRUE"; default: OSL_ASSERT(false); return OString(); diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx index 62fab8e1d692..56dbfe4e77ec 100644 --- a/idlc/source/idlccompile.cxx +++ b/idlc/source/idlccompile.cxx @@ -161,7 +161,7 @@ static OString makeTempName(const OString& prefix) #endif #endif - return OString(tmpFilePattern); + return tmpFilePattern; } bool copyFile(const OString* source, const OString& target) -- cgit