Replace scoped_ptr with unique_ptr in webrtc/modules/audio_processing/transient/
BUG=webrtc:5520 Review URL: https://codereview.webrtc.org/1698843003 Cr-Commit-Position: refs/heads/master@{#11645}
This commit is contained in:
@ -11,7 +11,8 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TRANSIENT_WPD_NODE_H_
|
||||
#define WEBRTC_MODULES_AUDIO_PROCESSING_TRANSIENT_WPD_NODE_H_
|
||||
|
||||
#include "webrtc/base/scoped_ptr.h"
|
||||
#include <memory>
|
||||
|
||||
#include "webrtc/typedefs.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -36,9 +37,9 @@ class WPDNode {
|
||||
size_t length() const { return length_; }
|
||||
|
||||
private:
|
||||
rtc::scoped_ptr<float[]> data_;
|
||||
std::unique_ptr<float[]> data_;
|
||||
size_t length_;
|
||||
rtc::scoped_ptr<FIRFilter> filter_;
|
||||
std::unique_ptr<FIRFilter> filter_;
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
Reference in New Issue
Block a user