Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: webrtc/common_audio/real_fourier.h

Issue 1937693002: Replace scoped_ptr with unique_ptr everywhere (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@unique5
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/common_audio/audio_ring_buffer.h ('k') | webrtc/common_audio/real_fourier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « webrtc/common_audio/audio_ring_buffer.h ('k') | webrtc/common_audio/real_fourier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698