mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:47:44 +00:00
LibIPC+IPCCompiler+AK: Make IPC value decoders return ErrorOr<void>
This allows us to use TRY() in decoding helpers, leading to a nice reduction in line count.
This commit is contained in:
parent
8d76eb773f
commit
cb9cac4e40
21 changed files with 207 additions and 296 deletions
|
@ -74,6 +74,6 @@ private:
|
|||
namespace IPC {
|
||||
|
||||
bool encode(Encoder&, const Core::AnonymousBuffer&);
|
||||
bool decode(Decoder&, Core::AnonymousBuffer&);
|
||||
ErrorOr<void> decode(Decoder&, Core::AnonymousBuffer&);
|
||||
|
||||
}
|
||||
|
|
|
@ -54,6 +54,6 @@ private:
|
|||
namespace IPC {
|
||||
|
||||
bool encode(IPC::Encoder&, const Core::DateTime&);
|
||||
bool decode(IPC::Decoder&, Core::DateTime&);
|
||||
ErrorOr<void> decode(IPC::Decoder&, Core::DateTime&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue