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

Unified Diff: webrtc/modules/audio_coding/neteq/audio_vector.cc

Issue 1697823002: Replace scoped_ptr with unique_ptr in webrtc/modules/audio_coding/neteq/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@up-codecs
Patch Set: 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/modules/audio_coding/neteq/audio_vector.cc
diff --git a/webrtc/modules/audio_coding/neteq/audio_vector.cc b/webrtc/modules/audio_coding/neteq/audio_vector.cc
index fa16481b69515e6eaa6cc36ff6ce82c6db675afa..013e1d89ad9206a2d9bc073b9d9c98cd84ed1dbd 100644
--- a/webrtc/modules/audio_coding/neteq/audio_vector.cc
+++ b/webrtc/modules/audio_coding/neteq/audio_vector.cc
@@ -13,6 +13,7 @@
#include <assert.h>
#include <algorithm>
+#include <memory>
#include "webrtc/typedefs.h"
@@ -180,7 +181,7 @@ int16_t& AudioVector::operator[](size_t index) {
void AudioVector::Reserve(size_t n) {
if (capacity_ < n) {
- rtc::scoped_ptr<int16_t[]> temp_array(new int16_t[n]);
+ std::unique_ptr<int16_t[]> temp_array(new int16_t[n]);
memcpy(temp_array.get(), array_.get(), Size() * sizeof(int16_t));
array_.swap(temp_array);
capacity_ = n;
« no previous file with comments | « webrtc/modules/audio_coding/neteq/audio_vector.h ('k') | webrtc/modules/audio_coding/neteq/background_noise.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698