| Index: webrtc/modules/audio_processing/transient/transient_detector.h
|
| diff --git a/webrtc/modules/audio_processing/transient/transient_detector.h b/webrtc/modules/audio_processing/transient/transient_detector.h
|
| index 3f96582aae6b53f08c4a9022663b281dd2fda015..dbd2ba5d68f9a124ff9bf5bb7317117dc0669566 100644
|
| --- a/webrtc/modules/audio_processing/transient/transient_detector.h
|
| +++ b/webrtc/modules/audio_processing/transient/transient_detector.h
|
| @@ -12,8 +12,8 @@
|
| #define WEBRTC_MODULES_AUDIO_PROCESSING_TRANSIENT_TRANSIENT_DETECTOR_H_
|
|
|
| #include <deque>
|
| +#include <memory>
|
|
|
| -#include "webrtc/base/scoped_ptr.h"
|
| #include "webrtc/modules/audio_processing/transient/moving_moments.h"
|
| #include "webrtc/modules/audio_processing/transient/wpd_tree.h"
|
|
|
| @@ -55,14 +55,14 @@ class TransientDetector {
|
|
|
| size_t samples_per_chunk_;
|
|
|
| - rtc::scoped_ptr<WPDTree> wpd_tree_;
|
| + std::unique_ptr<WPDTree> wpd_tree_;
|
| size_t tree_leaves_data_length_;
|
|
|
| // A MovingMoments object is needed for each leaf in the WPD tree.
|
| - rtc::scoped_ptr<MovingMoments> moving_moments_[kLeaves];
|
| + std::unique_ptr<MovingMoments> moving_moments_[kLeaves];
|
|
|
| - rtc::scoped_ptr<float[]> first_moments_;
|
| - rtc::scoped_ptr<float[]> second_moments_;
|
| + std::unique_ptr<float[]> first_moments_;
|
| + std::unique_ptr<float[]> second_moments_;
|
|
|
| // Stores the last calculated moments from the previous detection.
|
| float last_first_moment_[kLeaves];
|
|
|