Replace most explicit new RefCountedObject... with make_ref_counted
Bug: webrtc:12701 Change-Id: Iab91f1e96715eed7f9ddcfe1ca55510a18c817eb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/224544 Reviewed-by: Artem Titov <titovartem@webrtc.org> Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35786}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
b428d6bad4
commit
027c793c57
@ -27,7 +27,7 @@ int CreatePeerConnection(const char** turn_urls,
|
||||
const char* credential,
|
||||
bool mandatory_receive_video) {
|
||||
g_peer_connection_map[g_peer_connection_id] =
|
||||
new rtc::RefCountedObject<SimplePeerConnection>();
|
||||
rtc::make_ref_counted<SimplePeerConnection>();
|
||||
|
||||
if (!g_peer_connection_map[g_peer_connection_id]->InitializePeerConnection(
|
||||
turn_urls, no_of_urls, username, credential, mandatory_receive_video))
|
||||
|
||||
Reference in New Issue
Block a user