diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-04 18:16:37 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-04 18:17:16 +0200 |
commit | 3cb8ae873c3bbda96902e1eb6c1b71c9cc3e504f (patch) | |
tree | 41b8e21aa141c3112fce7f6f9ca660e2893bd51f /Shell/Parser.cpp | |
parent | 7a3ab6c517649e9dfdd50085f10492212b0bcb18 (diff) | |
download | serenity-3cb8ae873c3bbda96902e1eb6c1b71c9cc3e504f.zip |
Shell: Use NonnullRefPtr to simplify some things in the parser/AST
Diffstat (limited to 'Shell/Parser.cpp')
-rw-r--r-- | Shell/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Shell/Parser.cpp b/Shell/Parser.cpp index ebb10f2bd8..fd434162e5 100644 --- a/Shell/Parser.cpp +++ b/Shell/Parser.cpp @@ -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...)); } |