Kaynağa Gözat

LibAudio: Replace Result with ErrorOr

Since they are API compatible, this change is very simple.
kleines Filmröllchen 2 yıl önce
ebeveyn
işleme
3c65c22728
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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;
 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 {
 class LoaderPlugin {
 public:
 public: