Index: webrtc/media/devices/macdevicemanager.cc |
diff --git a/webrtc/media/devices/macdevicemanager.cc b/webrtc/media/devices/macdevicemanager.cc |
index d434f54b90d91809f4af3d618e8a3426c4bb53c2..c2f3d8bdbb3101b13332f4ec2ffd4a3d413eda30 100644 |
--- a/webrtc/media/devices/macdevicemanager.cc |
+++ b/webrtc/media/devices/macdevicemanager.cc |
@@ -10,6 +10,8 @@ |
#include "webrtc/media/devices/macdevicemanager.h" |
+#include <memory> |
+ |
#include <CoreAudio/CoreAudio.h> |
#include <QuickTime/QuickTime.h> |
@@ -102,7 +104,7 @@ static bool GetAudioDeviceIDs(bool input, |
} |
size_t num_devices = propsize / sizeof(AudioDeviceID); |
- rtc::scoped_ptr<AudioDeviceID[]> device_ids( |
+ std::unique_ptr<AudioDeviceID[]> device_ids( |
new AudioDeviceID[num_devices]); |
err = AudioHardwareGetProperty(kAudioHardwarePropertyDevices, |