Fixed Cppcheck warning about using const reference to avoid data copying

This commit is contained in:
Daniel Marjamäki 2018-01-15 22:31:15 +01:00
parent a0a04be011
commit c7c9b3cd65
1 changed files with 1 additions and 1 deletions

View File

@ -3670,7 +3670,7 @@ const Enumerator * SymbolDatabase::findEnumerator(const Token * tok) const
{
const Scope * scope = tok->scope();
const std::string tokStr = tok->str();
const std::string &tokStr = tok->str();
if (tokensThatAreNotEnumeratorValues.find(tokStr) != tokensThatAreNotEnumeratorValues.end()) {
return nullptr;