diff options
Diffstat (limited to 'compilerplugins/clang/stringconstant.cxx')
-rw-r--r-- | compilerplugins/clang/stringconstant.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx index 1280ce121691..7522641ef0b7 100644 --- a/compilerplugins/clang/stringconstant.cxx +++ b/compilerplugins/clang/stringconstant.cxx @@ -1191,11 +1191,11 @@ void StringConstant::handleOUStringCtor( && e3->getArg(0)->IgnoreParenImpCasts()->isIntegerConstantExpr( res, compiler.getASTContext())) { - if (res.getZExtValue() > 0 && res.getZExtValue() <= 127) { + if (res.getZExtValue() <= 127) { report( DiagnosticsEngine::Warning, - ("in call of %0, replace OUString constructed from a (non-NUL)" - " ASCII char constant with a string literal"), + ("in call of %0, replace OUString constructed from an ASCII" + " char constant with a string literal"), e3->getExprLoc()) << qname << expr->getSourceRange(); } |