Fix Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2019-07-10 22:08:27 +02:00
parent 5f217021ab
commit a9d61c4ddd
1 changed files with 1 additions and 1 deletions

View File

@ -5456,7 +5456,7 @@ static void valueFlowSafeFunctionReturn(TokenList *tokenlist, const Settings *se
continue;
// Get min/max values for return type
const std::string typestr = settings->library.returnValueType(tok->previous());
const std::string &typestr = settings->library.returnValueType(tok->previous());
MathLib::bigint minvalue, maxvalue;
if (!getMinMaxValues(typestr, settings, &minvalue, &maxvalue))
continue;