diff options
Diffstat (limited to 'third_party/libwebrtc/pc/rtc_stats_traversal.cc')
-rw-r--r-- | third_party/libwebrtc/pc/rtc_stats_traversal.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/libwebrtc/pc/rtc_stats_traversal.cc b/third_party/libwebrtc/pc/rtc_stats_traversal.cc index dfd0570b8f..e9d11b5ae5 100644 --- a/third_party/libwebrtc/pc/rtc_stats_traversal.cc +++ b/third_party/libwebrtc/pc/rtc_stats_traversal.cc @@ -15,6 +15,7 @@ #include <utility> #include <vector> +#include "absl/types/optional.h" #include "api/stats/rtcstats_objects.h" #include "rtc_base/checks.h" @@ -42,7 +43,7 @@ void TraverseAndTakeVisitedStats(RTCStatsReport* report, } } -void AddIdIfDefined(const RTCStatsMember<std::string>& id, +void AddIdIfDefined(const absl::optional<std::string>& id, std::vector<const std::string*>* neighbor_ids) { if (id.has_value()) neighbor_ids->push_back(&(*id)); |