Fix Cppcheck warning
This commit is contained in:
parent
f516bde744
commit
c62e345340
|
@ -498,8 +498,7 @@ namespace {
|
||||||
CWE cwe,
|
CWE cwe,
|
||||||
bool inconclusive,
|
bool inconclusive,
|
||||||
bool incomplete,
|
bool incomplete,
|
||||||
const std::string functionName) OVERRIDE
|
const std::string &functionName) OVERRIDE
|
||||||
|
|
||||||
{
|
{
|
||||||
if (errorPath.empty())
|
if (errorPath.empty())
|
||||||
mTrackExecution->addError(tok->linenr());
|
mTrackExecution->addError(tok->linenr());
|
||||||
|
|
|
@ -86,7 +86,7 @@ namespace ExprEngine {
|
||||||
CWE cwe,
|
CWE cwe,
|
||||||
bool inconclusive,
|
bool inconclusive,
|
||||||
bool incomplete=false,
|
bool incomplete=false,
|
||||||
const std::string functionName = std::string()) = 0;
|
const std::string &functionName = std::string()) = 0;
|
||||||
ErrorPath errorPath;
|
ErrorPath errorPath;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue