Chromium Code Reviews

Unified Diff: webrtc/common_audio/channel_buffer.cc

Issue 1726043002: Revert of Replace scoped_ptr with unique_ptr in webrtc/common_audio/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « webrtc/common_audio/channel_buffer.h ('k') | webrtc/common_audio/fir_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/channel_buffer.cc
diff --git a/webrtc/common_audio/channel_buffer.cc b/webrtc/common_audio/channel_buffer.cc
index 349d4245ccdb6e472db3cb60ee3a951c1e333b3b..44520c6100bc8e222d89b37db929942b51a723bd 100644
--- a/webrtc/common_audio/channel_buffer.cc
+++ b/webrtc/common_audio/channel_buffer.cc
@@ -9,8 +9,6 @@
*/
#include "webrtc/common_audio/channel_buffer.h"
-
-#include "webrtc/base/checks.h"
namespace webrtc {
@@ -46,7 +44,7 @@
void IFChannelBuffer::RefreshF() const {
if (!fvalid_) {
- RTC_DCHECK(ivalid_);
+ assert(ivalid_);
const int16_t* const* int_channels = ibuf_.channels();
float* const* float_channels = fbuf_.channels();
for (size_t i = 0; i < ibuf_.num_channels(); ++i) {
@@ -60,7 +58,7 @@
void IFChannelBuffer::RefreshI() const {
if (!ivalid_) {
- RTC_DCHECK(fvalid_);
+ assert(fvalid_);
int16_t* const* int_channels = ibuf_.channels();
const float* const* float_channels = fbuf_.channels();
for (size_t i = 0; i < ibuf_.num_channels(); ++i) {
« no previous file with comments | « webrtc/common_audio/channel_buffer.h ('k') | webrtc/common_audio/fir_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine