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

Unified Diff: webrtc/modules/audio_processing/splitting_filter.cc

Issue 1839603002: Remove webrtc::ScopedVector (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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_processing/splitting_filter.cc
diff --git a/webrtc/modules/audio_processing/splitting_filter.cc b/webrtc/modules/audio_processing/splitting_filter.cc
index 46cc9352c2dfad9ed434357058400b27329420e2..e87a7f86218b9fd50c8fe109f55b128f8af7d04b 100644
--- a/webrtc/modules/audio_processing/splitting_filter.cc
+++ b/webrtc/modules/audio_processing/splitting_filter.cc
@@ -25,7 +25,8 @@ SplittingFilter::SplittingFilter(size_t num_channels,
two_bands_states_.resize(num_channels);
} else if (num_bands_ == 3) {
for (size_t i = 0; i < num_channels; ++i) {
- three_band_filter_banks_.push_back(new ThreeBandFilterBank(num_frames));
+ three_band_filter_banks_.push_back(std::unique_ptr<ThreeBandFilterBank>(
+ new ThreeBandFilterBank(num_frames)));
}
}
}
« no previous file with comments | « webrtc/modules/audio_processing/splitting_filter.h ('k') | webrtc/modules/audio_processing/three_band_filter_bank.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698