| Index: talk/app/webrtc/objc/RTCPeerConnection.mm
|
| diff --git a/talk/app/webrtc/objc/RTCPeerConnection.mm b/talk/app/webrtc/objc/RTCPeerConnection.mm
|
| index 0ec61814f31319c835153a7d9759c1a3f1365e5a..da092c80269b6c378bdb2aaf6f0a726bf70d7aa8 100644
|
| --- a/talk/app/webrtc/objc/RTCPeerConnection.mm
|
| +++ b/talk/app/webrtc/objc/RTCPeerConnection.mm
|
| @@ -45,6 +45,8 @@
|
| #import "RTCStatsDelegate.h"
|
| #import "RTCStatsReport+Internal.h"
|
|
|
| +#include <memory>
|
| +
|
| #include "webrtc/api/jsep.h"
|
|
|
| NSString* const kRTCSessionDescriptionDelegateErrorDomain = @"RTCSDPError";
|
| @@ -141,12 +143,12 @@ class RTCStatsObserver : public StatsObserver {
|
|
|
| @implementation RTCPeerConnection {
|
| NSMutableArray* _localStreams;
|
| - rtc::scoped_ptr<webrtc::RTCPeerConnectionObserver> _observer;
|
| + std::unique_ptr<webrtc::RTCPeerConnectionObserver> _observer;
|
| rtc::scoped_refptr<webrtc::PeerConnectionInterface> _peerConnection;
|
| }
|
|
|
| - (BOOL)addICECandidate:(RTCICECandidate*)candidate {
|
| - rtc::scoped_ptr<const webrtc::IceCandidateInterface> iceCandidate(
|
| + std::unique_ptr<const webrtc::IceCandidateInterface> iceCandidate(
|
| candidate.candidate);
|
| return self.peerConnection->AddIceCandidate(iceCandidate.get());
|
| }
|
|
|