Replace more instances of rtc::RefCountedObject with make_ref_counted.
This is essentially replacing `new rtc::RefCountedObject` with `rtc::make_ref_counted` in many files. In a couple of places I made minor tweaks to make things compile such as adding parenthesis when they were missing. Bug: webrtc:12701 Change-Id: I3828dbf3ee0eb0232f3a47067474484ac2f4aed2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/215973 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33852}
This commit is contained in:
@ -29,7 +29,7 @@ class JavaVideoTrackSourceImpl : public JavaVideoTrackSourceInterface {
|
||||
bool is_screencast,
|
||||
bool align_timestamps)
|
||||
: android_video_track_source_(
|
||||
new rtc::RefCountedObject<jni::AndroidVideoTrackSource>(
|
||||
rtc::make_ref_counted<jni::AndroidVideoTrackSource>(
|
||||
signaling_thread,
|
||||
env,
|
||||
is_screencast,
|
||||
@ -109,7 +109,7 @@ rtc::scoped_refptr<JavaVideoTrackSourceInterface> CreateJavaVideoSource(
|
||||
rtc::Thread* signaling_thread,
|
||||
bool is_screencast,
|
||||
bool align_timestamps) {
|
||||
return new rtc::RefCountedObject<JavaVideoTrackSourceImpl>(
|
||||
return rtc::make_ref_counted<JavaVideoTrackSourceImpl>(
|
||||
jni, signaling_thread, is_screencast, align_timestamps);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user