Index: webrtc/modules/audio_processing/beamformer/array_util.h |
diff --git a/webrtc/modules/audio_processing/beamformer/array_util.h b/webrtc/modules/audio_processing/beamformer/array_util.h |
index 7fff9735a17a059d2e2d662c7567ccf6703a3467..f86ad5dee66fb2c0fa45c592c63c1ddd34ba606a 100644 |
--- a/webrtc/modules/audio_processing/beamformer/array_util.h |
+++ b/webrtc/modules/audio_processing/beamformer/array_util.h |
@@ -14,7 +14,7 @@ |
#include <cmath> |
#include <vector> |
-#include "webrtc/base/maybe.h" |
+#include "webrtc/base/optional.h" |
namespace webrtc { |
@@ -59,15 +59,16 @@ float GetMinimumSpacing(const std::vector<Point>& array_geometry); |
// If the given array geometry is linear it returns the direction without |
// normalizing. |
-rtc::Maybe<Point> GetDirectionIfLinear( |
+rtc::Optional<Point> GetDirectionIfLinear( |
const std::vector<Point>& array_geometry); |
// If the given array geometry is planar it returns the normal without |
// normalizing. |
-rtc::Maybe<Point> GetNormalIfPlanar(const std::vector<Point>& array_geometry); |
+rtc::Optional<Point> GetNormalIfPlanar( |
+ const std::vector<Point>& array_geometry); |
// Returns the normal of an array if it has one and it is in the xy-plane. |
-rtc::Maybe<Point> GetArrayNormalIfExists( |
+rtc::Optional<Point> GetArrayNormalIfExists( |
const std::vector<Point>& array_geometry); |
// The resulting Point will be in the xy-plane. |