Index: webrtc/common_audio/real_fourier.h |
diff --git a/webrtc/common_audio/real_fourier.h b/webrtc/common_audio/real_fourier.h |
index 0be56a58b0eda10de70445ccb4ac74a46840f694..8dbb98f7763df8f6cfb71c8908484789feff6fd0 100644 |
--- a/webrtc/common_audio/real_fourier.h |
+++ b/webrtc/common_audio/real_fourier.h |
@@ -12,6 +12,7 @@ |
#define WEBRTC_COMMON_AUDIO_REAL_FOURIER_H_ |
#include <complex> |
+#include <memory> |
#include "webrtc/base/scoped_ptr.h" |
#include "webrtc/system_wrappers/include/aligned_malloc.h" |
@@ -25,8 +26,8 @@ namespace webrtc { |
class RealFourier { |
public: |
// Shorthand typenames for the scopers used by the buffer allocation helpers. |
- typedef rtc::scoped_ptr<float[], AlignedFreeDeleter> fft_real_scoper; |
- typedef rtc::scoped_ptr<std::complex<float>[], AlignedFreeDeleter> |
+ typedef std::unique_ptr<float[], AlignedFreeDeleter> fft_real_scoper; |
+ typedef std::unique_ptr<std::complex<float>[], AlignedFreeDeleter> |
fft_cplx_scoper; |
// The alignment required for all input and output buffers, in bytes. |
@@ -34,7 +35,7 @@ class RealFourier { |
// Construct a wrapper instance for the given input order, which must be |
// between 1 and kMaxFftOrder, inclusively. |
- static rtc::scoped_ptr<RealFourier> Create(int fft_order); |
+ static std::unique_ptr<RealFourier> Create(int fft_order); |
virtual ~RealFourier() {}; |
// Helper to compute the smallest FFT order (a power of 2) which will contain |