Fix Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2020-06-19 14:11:49 +02:00
parent f516bde744
commit c62e345340
2 changed files with 2 additions and 3 deletions

View File

@ -498,8 +498,7 @@ namespace {
CWE cwe,
bool inconclusive,
bool incomplete,
const std::string functionName) OVERRIDE
const std::string &functionName) OVERRIDE
{
if (errorPath.empty())
mTrackExecution->addError(tok->linenr());

View File

@ -86,7 +86,7 @@ namespace ExprEngine {
CWE cwe,
bool inconclusive,
bool incomplete=false,
const std::string functionName = std::string()) = 0;
const std::string &functionName = std::string()) = 0;
ErrorPath errorPath;
};