Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Apr 8, 2024
1 parent 5fd3549 commit b953c05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/checkclass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3314,12 +3314,12 @@ static const Variable* getSingleReturnVar(const Scope* scope) {
return start->astOperand1()->variable();
}

void CheckClass::checkReturnReference()
void CheckClass::checkReturnByReference()
{
if (!mSettings->severity.isEnabled(Severity::style) && !mSettings->isPremiumEnabled("returnReference"))
if (!mSettings->severity.isEnabled(Severity::performance) && !mSettings->isPremiumEnabled("returnByReference"))
return;

logChecker("CheckClass::checkReturnReference"); // style
logChecker("CheckClass::checkReturnByReference"); // performance

for (const Scope* classScope : mSymbolDatabase->classAndStructScopes) {
for (const Function& func : classScope->functionList) {
Expand Down

0 comments on commit b953c05

Please sign in to comment.