diff options
author | Andreas Kling <kling@serenityos.org> | 2023-03-06 14:17:01 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-06 23:46:35 +0100 |
commit | 8a48246ed1a93983668a25f5b9b0af0e745e3f04 (patch) | |
tree | dd98425d119f79e0160bf19951f96a4a30276cbb /Userland/Shell/Parser.h | |
parent | 104be6c8ace8d56f66a89b570cdd615e74d22aa8 (diff) | |
download | serenity-8a48246ed1a93983668a25f5b9b0af0e745e3f04.zip |
Everywhere: Stop using NonnullRefPtrVector
This class had slightly confusing semantics and the added weirdness
doesn't seem worth it just so we can say "." instead of "->" when
iterating over a vector of NNRPs.
This patch replaces NonnullRefPtrVector<T> with Vector<NNRP<T>>.
Diffstat (limited to 'Userland/Shell/Parser.h')
-rw-r--r-- | Userland/Shell/Parser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Shell/Parser.h b/Userland/Shell/Parser.h index 802489d9b0..3ca87658cb 100644 --- a/Userland/Shell/Parser.h +++ b/Userland/Shell/Parser.h @@ -27,7 +27,7 @@ public: /// Parse the given string *as* an expression /// that is to forcefully enclose it in double-quotes. RefPtr<AST::Node> parse_as_single_expression(); - NonnullRefPtrVector<AST::Node> parse_as_multiple_expressions(); + Vector<NonnullRefPtr<AST::Node>> parse_as_multiple_expressions(); struct SavedOffset { size_t offset; @@ -47,7 +47,7 @@ private: }; struct SequenceParseResult { - NonnullRefPtrVector<AST::Node> entries; + Vector<NonnullRefPtr<AST::Node>> entries; Vector<AST::Position, 1> separator_positions; ShouldReadMoreSequences decision; }; |