diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-01-01 23:37:35 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-04 11:49:15 +0100 |
commit | ab99ed5fba8bf954cdd60bbc90dafbe47b29b18f (patch) | |
tree | 472d897714faecc41f6d4a6f9cabb4b9c7ce7b26 /Userland/Libraries/LibDNS/Answer.h | |
parent | d0f3f3d5ff1f783dcad5b6d8d0ceb38bbc397688 (diff) | |
download | serenity-ab99ed5fba8bf954cdd60bbc90dafbe47b29b18f.zip |
LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr
In doing so, this removes all uses of the Encoder's stream operator,
except for where it is currently still used in the generated IPC code.
So the stream operator currently discards any errors, which is the
existing behavior. A subsequent commit will propagate the errors.
Diffstat (limited to 'Userland/Libraries/LibDNS/Answer.h')
-rw-r--r-- | Userland/Libraries/LibDNS/Answer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDNS/Answer.h b/Userland/Libraries/LibDNS/Answer.h index d666562fb0..9a4c073e95 100644 --- a/Userland/Libraries/LibDNS/Answer.h +++ b/Userland/Libraries/LibDNS/Answer.h @@ -95,7 +95,7 @@ struct AK::Formatter<DNS::RecordClass> : StandardFormatter { namespace IPC { template<> -bool encode(Encoder&, DNS::Answer const&); +ErrorOr<void> encode(Encoder&, DNS::Answer const&); template<> ErrorOr<DNS::Answer> decode(Decoder&); |