Replace rtc::Optional with absl::optional
This is a no-op change because rtc::Optional is an alias to absl::optional This CL generated by running script passing top level directories except rtc_base and api find $@ -type f \( -name \*.h -o -name \*.cc -o -name \*.mm \) \ -exec sed -i 's|rtc::Optional|absl::optional|g' {} \+ \ -exec sed -i 's|rtc::nullopt|absl::nullopt|g' {} \+ \ -exec sed -i 's|#include "api/optional.h"|#include "absl/types/optional.h"|' {} \+ find $@ -type f -name BUILD.gn \ -exec sed -r -i 's|"[\./api]*:optional"|"//third_party/abseil-cpp/absl/types:optional"|' {} \+; git cl format Bug: webrtc:9078 Change-Id: I9465c172e65ba6e6ed4e4fdc35b0b265038d6f71 Reviewed-on: https://webrtc-review.googlesource.com/84584 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23697}
This commit is contained in:

committed by
Commit Bot

parent
ae810c10b4
commit
196100efa6
@ -40,10 +40,10 @@ rtc_static_library("system_wrappers") {
|
||||
":runtime_enabled_features_api",
|
||||
"..:webrtc_common",
|
||||
"../:typedefs",
|
||||
"../api:optional",
|
||||
"../modules:module_api_public",
|
||||
"../rtc_base:checks",
|
||||
"../rtc_base/synchronization:rw_lock_wrapper",
|
||||
"//third_party/abseil-cpp/absl/types:optional",
|
||||
]
|
||||
|
||||
if (is_posix || is_fuchsia) {
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#include <list>
|
||||
|
||||
#include "api/optional.h"
|
||||
#include "absl/types/optional.h"
|
||||
#include "modules/include/module_common_types_public.h"
|
||||
#include "rtc_base/numerics/moving_median_filter.h"
|
||||
#include "system_wrappers/include/ntp_time.h"
|
||||
@ -72,7 +72,7 @@ class RtpToNtpEstimator {
|
||||
bool Estimate(int64_t rtp_timestamp, int64_t* rtp_timestamp_ms) const;
|
||||
|
||||
// Returns estimated rtp to ntp linear transform parameters.
|
||||
const rtc::Optional<Parameters> params() const;
|
||||
const absl::optional<Parameters> params() const;
|
||||
|
||||
static const int kMaxInvalidSamples = 3;
|
||||
|
||||
|
@ -193,9 +193,9 @@ bool RtpToNtpEstimator::Estimate(int64_t rtp_timestamp,
|
||||
return true;
|
||||
}
|
||||
|
||||
const rtc::Optional<RtpToNtpEstimator::Parameters> RtpToNtpEstimator::params()
|
||||
const absl::optional<RtpToNtpEstimator::Parameters> RtpToNtpEstimator::params()
|
||||
const {
|
||||
rtc::Optional<Parameters> res;
|
||||
absl::optional<Parameters> res;
|
||||
if (params_calculated_) {
|
||||
res.emplace(smoothing_filter_.GetFilteredValue());
|
||||
}
|
||||
|
Reference in New Issue
Block a user