summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-30 17:53:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-31 12:57:45 +0200
commitab153c4142500a84c95b3dc90e0006a11a03fc0b (patch)
tree9792580103c46a55dc29ee892ec7781de8270237 /idlc
parentfab5a47c0cbd001fb0b607069561e8fe20abb328 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/astexpression.cxx4
-rw-r--r--idlc/source/idlccompile.cxx2
2 files changed, 3 insertions, 3 deletions
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)