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

Unified Diff: webrtc/base/flags.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/base/filerotatingstream.cc ('k') | webrtc/base/logsinks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/flags.cc
diff --git a/webrtc/base/flags.cc b/webrtc/base/flags.cc
index a5e1c45e5d0272ee5da3942f2948443a34b1e5bb..0c0f4491c83057d8062d4d9f1e6ce3756c192ccb 100644
--- a/webrtc/base/flags.cc
+++ b/webrtc/base/flags.cc
@@ -163,7 +163,7 @@ void FlagList::SplitArgument(const char* arg,
if (*arg == '=') {
// make a copy so we can NUL-terminate flag name
int n = static_cast<int>(arg - *name);
- CHECK_LT(n, buffer_size);
+ RTC_CHECK_LT(n, buffer_size);
memcpy(buffer, *name, n * sizeof(char));
buffer[n] = '\0';
*name = buffer;
@@ -257,7 +257,8 @@ int FlagList::SetFlagsFromCommandLine(int* argc, const char** argv,
void FlagList::Register(Flag* flag) {
assert(flag != NULL && strlen(flag->name()) > 0);
- CHECK(!Lookup(flag->name())) << "flag " << flag->name() << " declared twice";
+ RTC_CHECK(!Lookup(flag->name())) << "flag " << flag->name()
+ << " declared twice";
flag->next_ = list_;
list_ = flag;
}
« no previous file with comments | « webrtc/base/filerotatingstream.cc ('k') | webrtc/base/logsinks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698