Index: webrtc/sdk/objc/Framework/Classes/RTCMediaConstraints.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCMediaConstraints.mm b/webrtc/sdk/objc/Framework/Classes/RTCMediaConstraints.mm |
index 7a7cdf15cf171430aff1edf0b2e09c48892bc3aa..11be2ec026c61c8a1e0016c90820b3738fc9a6c7 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/RTCMediaConstraints.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/RTCMediaConstraints.mm |
@@ -12,6 +12,8 @@ |
#import "NSString+StdString.h" |
+#include <memory> |
+ |
namespace webrtc { |
MediaConstraints::~MediaConstraints() {} |
@@ -62,7 +64,7 @@ MediaConstraints::GetOptional() const { |
#pragma mark - Private |
-- (rtc::scoped_ptr<webrtc::MediaConstraints>)nativeConstraints { |
+- (std::unique_ptr<webrtc::MediaConstraints>)nativeConstraints { |
webrtc::MediaConstraintsInterface::Constraints mandatory = |
[[self class] nativeConstraintsForConstraints:_mandatory]; |
webrtc::MediaConstraintsInterface::Constraints optional = |
@@ -70,7 +72,7 @@ MediaConstraints::GetOptional() const { |
webrtc::MediaConstraints *nativeConstraints = |
new webrtc::MediaConstraints(mandatory, optional); |
- return rtc::scoped_ptr<webrtc::MediaConstraints>(nativeConstraints); |
+ return std::unique_ptr<webrtc::MediaConstraints>(nativeConstraints); |
} |
+ (webrtc::MediaConstraintsInterface::Constraints) |