mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02: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:
Notes:
sideshowbarker
2024-07-18 00:33:35 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/cb9cac4e400
@@ -386,7 +386,7 @@ public:
|
||||
|
||||
parameter_generator.append(R"~~~(
|
||||
@parameter.type@ @parameter.name@ = @parameter.initial_value@;
|
||||
if (!decoder.decode(@parameter.name@))
|
||||
if (decoder.decode(@parameter.name@).is_error())
|
||||
return {};
|
||||
)~~~");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user