commit | 2bbff996a6c9851524f63c015c4590d34c517eda | [log] [tgz] |
---|---|---|
author | kwiberg <kwiberg@webrtc.org> | Wed Mar 16 11:03:04 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Mar 16 18:03:08 2016 +0000 |
tree | 8850f3fb8d443f3b881499012329e17d7dfdd232 | |
parent | 8ad582d83ffb935ba06b2474d1ec1ff3650ac376 [diff] |
Helpers in peer connection unit tests: Use scoped_ptr instead of raw pointers A handful of helpers were using SessionDescriptionInterface** output arguments to return ownership. Chenge them to either use a rtc::scoped_ptr<SessionDescriptionInterface>* output parameter, or to simply return a rtc::scoped_ptr<SessionDescriptionInterface>. Not using raw pointers for things you own is good in general; it will also be very convenient when scoped_ptr is gone, since unique_ptr doesn't have .accept() or .use() methods. BUG=webrtc:5520 Review URL: https://codereview.webrtc.org/1798173002 Cr-Commit-Position: refs/heads/master@{#12021}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others. This page is maintained by the Google Chrome team.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.