Replace scoped_ptr with unique_ptr in webrtc/modules/audio_processing/
BUG=webrtc:5520 Review URL: https://codereview.webrtc.org/1710483002 Cr-Commit-Position: refs/heads/master@{#11684}
This commit is contained in:
@ -41,7 +41,7 @@ VoiceDetectionImpl::~VoiceDetectionImpl() {}
|
||||
void VoiceDetectionImpl::Initialize(int sample_rate_hz) {
|
||||
rtc::CritScope cs(crit_);
|
||||
sample_rate_hz_ = sample_rate_hz;
|
||||
rtc::scoped_ptr<Vad> new_vad;
|
||||
std::unique_ptr<Vad> new_vad;
|
||||
if (enabled_) {
|
||||
new_vad.reset(new Vad());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user