diff options
Diffstat (limited to 'stats/rtc_stats_report.cc')
-rw-r--r-- | stats/rtc_stats_report.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/stats/rtc_stats_report.cc b/stats/rtc_stats_report.cc index d29d819fc3..4fbd82508e 100644 --- a/stats/rtc_stats_report.cc +++ b/stats/rtc_stats_report.cc @@ -56,15 +56,12 @@ bool RTCStatsReport::ConstIterator::operator!=( rtc::scoped_refptr<RTCStatsReport> RTCStatsReport::Create( int64_t timestamp_us) { - return rtc::scoped_refptr<RTCStatsReport>( - new rtc::RefCountedObject<RTCStatsReport>(timestamp_us)); + return rtc::scoped_refptr<RTCStatsReport>(new RTCStatsReport(timestamp_us)); } RTCStatsReport::RTCStatsReport(int64_t timestamp_us) : timestamp_us_(timestamp_us) {} -RTCStatsReport::~RTCStatsReport() {} - rtc::scoped_refptr<RTCStatsReport> RTCStatsReport::Copy() const { rtc::scoped_refptr<RTCStatsReport> copy = Create(timestamp_us_); for (auto it = stats_.begin(); it != stats_.end(); ++it) { |