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

Unified Diff: webrtc/common_audio/window_generator.cc

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 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/wav_header.cc ('k') | webrtc/common_video/i420_buffer_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/window_generator.cc
diff --git a/webrtc/common_audio/window_generator.cc b/webrtc/common_audio/window_generator.cc
index ae6cbc9d849d49dfcf2c1965f6785be2ec1a7c8d..ab983b736fbfac69489c9de6bc5f09f7e49c5676 100644
--- a/webrtc/common_audio/window_generator.cc
+++ b/webrtc/common_audio/window_generator.cc
@@ -38,8 +38,8 @@ complex<float> I0(complex<float> x) {
namespace webrtc {
void WindowGenerator::Hanning(int length, float* window) {
- CHECK_GT(length, 1);
- CHECK(window != nullptr);
+ RTC_CHECK_GT(length, 1);
+ RTC_CHECK(window != nullptr);
for (int i = 0; i < length; ++i) {
window[i] = 0.5f * (1 - cosf(2 * static_cast<float>(M_PI) * i /
(length - 1)));
@@ -48,8 +48,8 @@ void WindowGenerator::Hanning(int length, float* window) {
void WindowGenerator::KaiserBesselDerived(float alpha, size_t length,
float* window) {
- CHECK_GT(length, 1U);
- CHECK(window != nullptr);
+ RTC_CHECK_GT(length, 1U);
+ RTC_CHECK(window != nullptr);
const size_t half = (length + 1) / 2;
float sum = 0.0f;
« no previous file with comments | « webrtc/common_audio/wav_header.cc ('k') | webrtc/common_video/i420_buffer_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698