Fixed Cppcheck warning
This commit is contained in:
parent
79fc549de0
commit
ab958e7710
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue