From 5b3a5f0713cb5924d2025b7463f4d4690cc271e2 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Wed, 10 Apr 2024 16:58:02 +0200 Subject: [PATCH] dummy names --- lib/checkclass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index 66ab3578560..1a42f8ab820 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -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); }