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:
@ -14,7 +14,6 @@
|
||||
#include <complex>
|
||||
|
||||
#include "webrtc/base/checks.h"
|
||||
#include "webrtc/base/scoped_ptr.h"
|
||||
#include "webrtc/modules/audio_processing/beamformer/matrix.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -18,7 +18,6 @@
|
||||
|
||||
#include "webrtc/base/checks.h"
|
||||
#include "webrtc/base/constructormagic.h"
|
||||
#include "webrtc/base/scoped_ptr.h"
|
||||
|
||||
namespace {
|
||||
|
||||
|
||||
@ -15,6 +15,8 @@
|
||||
#define _USE_MATH_DEFINES
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/common_audio/lapped_transform.h"
|
||||
@ -125,7 +127,7 @@ class NonlinearBeamformer
|
||||
|
||||
// Deals with the fft transform and blocking.
|
||||
size_t chunk_length_;
|
||||
rtc::scoped_ptr<LappedTransform> lapped_transform_;
|
||||
std::unique_ptr<LappedTransform> lapped_transform_;
|
||||
float window_[kFftSize];
|
||||
|
||||
// Parameters exposed to the user.
|
||||
|
||||
Reference in New Issue
Block a user