mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibAudio: Replace Result with ErrorOr
Since they are API compatible, this change is very simple.
This commit is contained in:
parent
b38beb106e
commit
3c65c22728
Notes:
sideshowbarker
2024-07-16 23:07:16 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 3c65c22728
Pull-request: https://github.com/SerenityOS/serenity/pull/17512
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/davidot ✅
Reviewed-by: https://github.com/timschumi
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@ namespace Audio {
|
|||
|
||||
static constexpr StringView no_plugin_error = "No loader plugin available"sv;
|
||||
|
||||
using LoaderSamples = Result<FixedArray<Sample>, LoaderError>;
|
||||
using MaybeLoaderError = Result<void, LoaderError>;
|
||||
using LoaderSamples = ErrorOr<FixedArray<Sample>, LoaderError>;
|
||||
using MaybeLoaderError = ErrorOr<void, LoaderError>;
|
||||
|
||||
class LoaderPlugin {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue