Browse Source

LibAudio: Replace Result with ErrorOr

Since they are API compatible, this change is very simple.
kleines Filmröllchen 2 năm trước cách đây
mục cha
commit
3c65c22728
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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: