Replace scoped_ptr with unique_ptr in webrtc/modules/audio_processing/vad/

BUG=webrtc:5520

Review URL: https://codereview.webrtc.org/1699003002

Cr-Commit-Position: refs/heads/master@{#11657}
This commit is contained in:
kwiberg
2016-02-17 07:59:48 -08:00
committed by Commit bot
parent a293ef0618
commit dabf07f477
9 changed files with 26 additions and 20 deletions

View File

@ -11,7 +11,7 @@
#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_VAD_VAD_CIRCULAR_BUFFER_H_
#define WEBRTC_MODULES_AUDIO_PROCESSING_VAD_VAD_CIRCULAR_BUFFER_H_
#include "webrtc/base/scoped_ptr.h"
#include <memory>
namespace webrtc {
@ -58,7 +58,7 @@ class VadCircularBuffer {
// corresponding linear index.
int ConvertToLinearIndex(int* index) const;
rtc::scoped_ptr<double[]> buffer_;
std::unique_ptr<double[]> buffer_;
bool is_full_;
int index_;
int buffer_size_;