Skip to content

Commit

Permalink
Update checkclass.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Apr 11, 2024
1 parent d43a1b3 commit 74088f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/checkclass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3327,6 +3327,8 @@ void CheckClass::checkReturnByReference()
for (const Function& func : classScope->functionList) {
if (Function::returnsPointer(&func) || Function::returnsReference(&func) || Function::returnsStandardType(&func))
continue;
if (func.isImplicitlyVirtual())
continue;
if (const Variable* var = getSingleReturnVar(func.functionScope)) {
if (!var->valueType())
continue;
Expand Down

0 comments on commit 74088f0

Please sign in to comment.