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

Unified Diff: webrtc/system_wrappers/interface/aligned_array.h

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/p2p/stunprober/stunprober.cc ('k') | webrtc/system_wrappers/interface/scoped_vector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/system_wrappers/interface/aligned_array.h
diff --git a/webrtc/system_wrappers/interface/aligned_array.h b/webrtc/system_wrappers/interface/aligned_array.h
index 3648c7c1940dc153892bf864d363209ada17bb53..6d6c81b15c6dc40b8d74dc19ed6cf9eaaa35af8b 100644
--- a/webrtc/system_wrappers/interface/aligned_array.h
+++ b/webrtc/system_wrappers/interface/aligned_array.h
@@ -24,7 +24,7 @@ template<typename T> class AlignedArray {
: rows_(rows),
cols_(cols),
alignment_(alignment) {
- CHECK_GT(alignment_, 0);
+ RTC_CHECK_GT(alignment_, 0);
head_row_ = static_cast<T**>(AlignedMalloc(rows_ * sizeof(*head_row_),
alignment_));
for (int i = 0; i < rows_; ++i) {
@@ -49,22 +49,22 @@ template<typename T> class AlignedArray {
}
T* Row(int row) {
- CHECK_LE(row, rows_);
+ RTC_CHECK_LE(row, rows_);
return head_row_[row];
}
const T* Row(int row) const {
- CHECK_LE(row, rows_);
+ RTC_CHECK_LE(row, rows_);
return head_row_[row];
}
T& At(int row, size_t col) {
- CHECK_LE(col, cols_);
+ RTC_CHECK_LE(col, cols_);
return Row(row)[col];
}
const T& At(int row, size_t col) const {
- CHECK_LE(col, cols_);
+ RTC_CHECK_LE(col, cols_);
return Row(row)[col];
}
« no previous file with comments | « webrtc/p2p/stunprober/stunprober.cc ('k') | webrtc/system_wrappers/interface/scoped_vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698