Skip to content

Commit

Permalink
dummy names
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Apr 10, 2024
1 parent 1ad38ac commit 5b3a5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checkclass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3348,7 +3348,7 @@ void CheckClass::checkReturnByReference()
void CheckClass::returnByReferenceError(const Function* func, const Variable* var)
{
const Token* tok = func ? func->tokenDef : nullptr;
const std::string message = "Function '" + (func ? func->name() : "") + "()' should return member '" + (var ? var->name() : "") + "' by const reference.";
const std::string message = "Function '" + (func ? func->name() : "func") + "()' should return member '" + (var ? var->name() : "var") + "' by const reference.";
reportError(tok, Severity::performance, "returnByReference", message);
}

Expand Down

0 comments on commit 5b3a5f0

Please sign in to comment.