1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00

Shell: Use NonnullRefPtr to simplify some things in the parser/AST

This commit is contained in:
Andreas Kling 2020-08-04 18:16:37 +02:00
parent 7a3ab6c517
commit 3cb8ae873c
4 changed files with 12 additions and 12 deletions

View file

@ -72,7 +72,7 @@ bool Parser::expect(const StringView& expected)
}
template<typename A, typename... Args>
RefPtr<A> Parser::create(Args... args)
NonnullRefPtr<A> Parser::create(Args... args)
{
return adopt(*new A(AST::Position { m_rule_start_offsets.last(), m_offset }, args...));
}