Fix Cppcheck warning. Use reference to avoid redundant data-copy

This commit is contained in:
Daniel Marjamäki 2014-04-03 16:16:39 +02:00
parent d9358de8b4
commit ffac614f7e
1 changed files with 1 additions and 1 deletions

View File

@ -3411,7 +3411,7 @@ void CheckOther::oppositeInnerCondition()
if (!cond1 || !cond1->isComparisonOp())
continue;
const std::string comp1 = cond1->str();
const std::string &comp1 = cond1->str();
if (!Token::simpleMatch(scope->classDef->linkAt(1), ") { if"))
continue;