Index: webrtc/base/flags.cc |
diff --git a/webrtc/base/flags.cc b/webrtc/base/flags.cc |
index 248c5c3f185e974a00a34112ba69dd892467066b..a138b8fb9b6812c9e7d680d90de58de19504da1f 100644 |
--- a/webrtc/base/flags.cc |
+++ b/webrtc/base/flags.cc |
@@ -8,18 +8,19 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
+#include "webrtc/base/flags.h" |
+ |
#include <stdio.h> |
#include <stdlib.h> |
#include <string.h> |
+#include "webrtc/base/checks.h" |
#if defined(WEBRTC_WIN) |
#include "webrtc/base/win32.h" |
#include <shellapi.h> |
#endif |
-#include "webrtc/base/flags.h" |
- |
namespace rtc { |
// ----------------------------------------------------------------------------- |
// Implementation of Flag |
@@ -256,7 +257,8 @@ int FlagList::SetFlagsFromCommandLine(int* argc, const char** argv, |
} |
void FlagList::Register(Flag* flag) { |
- assert(flag != NULL && strlen(flag->name()) > 0); |
+ RTC_DCHECK(flag); |
+ RTC_DCHECK_GT(strlen(flag->name()), 0u); |
// NOTE: Don't call Lookup() within Register because it accesses the name_ |
// of other flags in list_, and if the flags are coming from two different |
// compilation units, the initialization order between them is undefined, and |