We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38aa0fa commit da198e0Copy full SHA for da198e0
1 file changed
lib/checktype.cpp
@@ -247,7 +247,7 @@ void CheckType::checkIntegerOverflowOptimisations()
247
if (!Token::Match(tok, "<|<=|>=|>") || !tok->isBinaryOp())
248
continue;
249
250
- const std::string cmp = tok->str();
+ const std::string &cmp = tok->str();
251
const Token * const lhs = tok->astOperand1();
252
if (!Token::Match(lhs, "[+-]") || !lhs->isBinaryOp() || !lhs->valueType() || !lhs->valueType()->isIntegral() || lhs->valueType()->sign != ValueType::Sign::SIGNED)
253
0 commit comments