diff --git a/api/stats/rtc_stats_report.h b/api/stats/rtc_stats_report.h index 2f5b8765c3..85da197a7f 100644 --- a/api/stats/rtc_stats_report.h +++ b/api/stats/rtc_stats_report.h @@ -34,7 +34,7 @@ class RTC_EXPORT RTCStatsReport : public rtc::RefCountInterface { class ConstIterator { public: - ConstIterator(const ConstIterator&& other); + ConstIterator(ConstIterator&& other); ~ConstIterator(); ConstIterator& operator++(); diff --git a/stats/rtc_stats_report.cc b/stats/rtc_stats_report.cc index bdafd56997..a56d30d3c3 100644 --- a/stats/rtc_stats_report.cc +++ b/stats/rtc_stats_report.cc @@ -23,8 +23,7 @@ RTCStatsReport::ConstIterator::ConstIterator( StatsMap::const_iterator it) : report_(report), it_(it) {} -RTCStatsReport::ConstIterator::ConstIterator(const ConstIterator&& other) - : report_(std::move(other.report_)), it_(std::move(other.it_)) {} +RTCStatsReport::ConstIterator::ConstIterator(ConstIterator&& other) = default; RTCStatsReport::ConstIterator::~ConstIterator() {}