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

Unified Diff: webrtc/common_audio/fir_filter.cc

Issue 1712513002: Replace scoped_ptr with unique_ptr in webrtc/common_audio/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: need uintptr_t Created 4 years, 10 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
Index: webrtc/common_audio/fir_filter.cc
diff --git a/webrtc/common_audio/fir_filter.cc b/webrtc/common_audio/fir_filter.cc
index dc1b776f99728938cef7b684b96adaeb1a2b15cb..13a2237dae1a599f737288d6752eae4cbbfd81d5 100644
--- a/webrtc/common_audio/fir_filter.cc
+++ b/webrtc/common_audio/fir_filter.cc
@@ -13,7 +13,8 @@
#include <assert.h>
#include <string.h>
-#include "webrtc/base/scoped_ptr.h"
+#include <memory>
+
#include "webrtc/common_audio/fir_filter_neon.h"
#include "webrtc/common_audio/fir_filter_sse.h"
#include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
@@ -30,8 +31,8 @@ class FIRFilterC : public FIRFilter {
private:
size_t coefficients_length_;
size_t state_length_;
- rtc::scoped_ptr<float[]> coefficients_;
- rtc::scoped_ptr<float[]> state_;
+ std::unique_ptr<float[]> coefficients_;
+ std::unique_ptr<float[]> state_;
};
FIRFilter* FIRFilter::Create(const float* coefficients,

Powered by Google App Engine
This is Rietveld 408576698