1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

LibAudio: Replace Result with ErrorOr

Since they are API compatible, this change is very simple.
This commit is contained in:
kleines Filmröllchen 2023-02-17 18:57:10 +01:00 committed by Andrew Kaster
parent b38beb106e
commit 3c65c22728

View file

@ -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: