瀏覽代碼

LibAudio: Replace Result with ErrorOr

Since they are API compatible, this change is very simple.
kleines Filmröllchen 2 年之前
父節點
當前提交
3c65c22728
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Userland/Libraries/LibAudio/Loader.h

+ 2 - 2
Userland/Libraries/LibAudio/Loader.h

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