Update pc/ to not use implicit T* --> scoped_refptr<T> conversion
Bug: webrtc:13464
Change-Id: I729ec2306ec0d6df2e546b5dbb530f57065d60da
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/244090
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35623}
diff --git a/pc/peer_connection.cc b/pc/peer_connection.cc
index 350233d..a00e400 100644
--- a/pc/peer_connection.cc
+++ b/pc/peer_connection.cc
@@ -849,7 +849,7 @@
bool PeerConnection::RemoveTrack(RtpSenderInterface* sender) {
TRACE_EVENT0("webrtc", "PeerConnection::RemoveTrack");
- return RemoveTrackNew(sender).ok();
+ return RemoveTrackNew(rtc::scoped_refptr<RtpSenderInterface>(sender)).ok();
}
RTCError PeerConnection::RemoveTrackNew(
@@ -1181,7 +1181,8 @@
RTC_DCHECK(stats_collector_);
RTC_DCHECK(callback);
RTC_LOG_THREAD_BLOCK_COUNT();
- stats_collector_->GetStatsReport(callback);
+ stats_collector_->GetStatsReport(
+ rtc::scoped_refptr<RTCStatsCollectorCallback>(callback));
}
void PeerConnection::GetStats(