diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-03-01 15:27:35 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-13 15:16:20 +0000 |
commit | a3f73e7d85584412e2774870bc6538faaaf71001 (patch) | |
tree | 0e16f061a39e5006ff311bcd93011fdd0a3816ba /Userland/Shell | |
parent | d5871f5717579fab3c093537c44e3cd467560cdd (diff) | |
download | serenity-a3f73e7d85584412e2774870bc6538faaaf71001.zip |
AK: Rename Stream::read_entire_buffer to Stream::read_until_filled
No functional changes.
Diffstat (limited to 'Userland/Shell')
-rw-r--r-- | Userland/Shell/AST.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Shell/AST.cpp b/Userland/Shell/AST.cpp index e675ca2fee..f5082c7de0 100644 --- a/Userland/Shell/AST.cpp +++ b/Userland/Shell/AST.cpp @@ -1772,7 +1772,7 @@ ErrorOr<void> Execute::for_each_entry(RefPtr<Shell> shell, Function<ErrorOr<Iter return Break; } auto entry = entry_result.release_value(); - TRY(stream.read_entire_buffer(entry)); + TRY(stream.read_until_filled(entry)); auto str = TRY(String::from_utf8(StringView(entry.data(), entry.size() - ifs.length()))); if (TRY(callback(make_ref_counted<StringValue>(move(str)))) == IterationDecision::Break) { @@ -1862,7 +1862,7 @@ ErrorOr<void> Execute::for_each_entry(RefPtr<Shell> shell, Function<ErrorOr<Iter return {}; } auto entry = entry_result.release_value(); - TRY(stream.read_entire_buffer(entry)); + TRY(stream.read_until_filled(entry)); TRY(callback(make_ref_counted<StringValue>(TRY(String::from_utf8(entry))))); } } |