From ec2c56e8ed7e3e60323d1780a38e3f705c8e4807 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:03:56 +0200 Subject: [PATCH] Update checkclass.h --- lib/checkclass.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/checkclass.h b/lib/checkclass.h index da0c618adb8..0e882be6305 100644 --- a/lib/checkclass.h +++ b/lib/checkclass.h @@ -212,7 +212,7 @@ class CPPCHECKLIB CheckClass : public Check { void copyCtorAndEqOperatorError(const Token *tok, const std::string &classname, bool isStruct, bool hasCopyCtor); void overrideError(const Function *funcInBase, const Function *funcInDerived); void uselessOverrideError(const Function *funcInBase, const Function *funcInDerived, bool isSameCode = false); - void returnReferenceError(const Function *func, const Variable* var); + void returnByReferenceError(const Function *func, const Variable* var); void thisUseAfterFree(const Token *self, const Token *free, const Token *use); void unsafeClassRefMemberError(const Token *tok, const std::string &varname); void checkDuplInheritedMembersRecursive(const Type* typeCurrent, const Type* typeBase); @@ -253,7 +253,7 @@ class CPPCHECKLIB CheckClass : public Check { c.copyCtorAndEqOperatorError(nullptr, "class", false, false); c.overrideError(nullptr, nullptr); c.uselessOverrideError(nullptr, nullptr); - c.returnReferenceError(nullptr, nullptr); + c.returnByReferenceError(nullptr, nullptr); c.pureVirtualFunctionCallInConstructorError(nullptr, std::list(), "f"); c.virtualFunctionCallInConstructorError(nullptr, std::list(), "f"); c.overrideError(nullptr, nullptr);