Skip to content

Commit

Permalink
Update checkclass.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Apr 17, 2024
1 parent 8b518bf commit 881bf18
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 @@ -3306,7 +3306,7 @@ void CheckClass::checkUselessOverride()
}

static const Variable* getSingleReturnVar(const Scope* scope) {
if (!scope)
if (!scope || !scope->bodyStart)
return nullptr;
const Token* const start = scope->bodyStart->next();
const Token* const end = Token::findsimplematch(start, ";", 1, scope->bodyEnd);
Expand Down

0 comments on commit 881bf18

Please sign in to comment.