Преглед на файлове

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: