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:
@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user