Fixed Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2014-08-04 06:30:20 +02:00
parent 79fc549de0
commit ab958e7710
1 changed files with 1 additions and 1 deletions

View File

@ -676,7 +676,7 @@ public:
std::list<ValueFlow::Value>::const_iterator it; std::list<ValueFlow::Value>::const_iterator it;
for (it = values.begin(); it != values.end(); ++it) { for (it = values.begin(); it != values.end(); ++it) {
if (it->tokvalue && it->tokvalue->type() == Token::eString) { if (it->tokvalue && it->tokvalue->type() == Token::eString) {
std::size_t length = Token::getStrLength(it->tokvalue); std::size_t length = getStrLength(it->tokvalue);
if (!ret || length > maxlength) { if (!ret || length > maxlength) {
maxlength = length; maxlength = length;
ret = it->tokvalue; ret = it->tokvalue;