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

Unified Diff: webrtc/common_audio/channel_buffer.h

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: rebase 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
« no previous file with comments | « webrtc/common_audio/blocker_unittest.cc ('k') | webrtc/common_audio/channel_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/channel_buffer.h
diff --git a/webrtc/common_audio/channel_buffer.h b/webrtc/common_audio/channel_buffer.h
index 9f2fb9635715fa0fc3cf5cf7a198c89b2e9367a1..faecec9194ceb86be1d37104e24e7ad0a6915048 100644
--- a/webrtc/common_audio/channel_buffer.h
+++ b/webrtc/common_audio/channel_buffer.h
@@ -13,9 +13,10 @@
#include <string.h>
+#include <memory>
+
#include "webrtc/base/checks.h"
#include "webrtc/base/gtest_prod_util.h"
-#include "webrtc/base/scoped_ptr.h"
#include "webrtc/common_audio/include/audio_util.h"
namespace webrtc {
@@ -125,9 +126,9 @@ class ChannelBuffer {
}
private:
- rtc::scoped_ptr<T[]> data_;
- rtc::scoped_ptr<T* []> channels_;
- rtc::scoped_ptr<T* []> bands_;
+ std::unique_ptr<T[]> data_;
+ std::unique_ptr<T* []> channels_;
+ std::unique_ptr<T* []> bands_;
const size_t num_frames_;
const size_t num_frames_per_band_;
const size_t num_channels_;
« no previous file with comments | « webrtc/common_audio/blocker_unittest.cc ('k') | webrtc/common_audio/channel_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698