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

Unified Diff: webrtc/rtc_base/macutils.cc

Issue 2988153003: Replace CHECK(x && y) with two separate CHECK() calls (Closed)
Patch Set: fix link failure Created 3 years, 5 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
Index: webrtc/rtc_base/macutils.cc
diff --git a/webrtc/rtc_base/macutils.cc b/webrtc/rtc_base/macutils.cc
index 282f7827a0c7518ba3524f08df004215fae73929..2e5e1fb36376fd14dcf72ad4edccf9c0a2331e18 100644
--- a/webrtc/rtc_base/macutils.cc
+++ b/webrtc/rtc_base/macutils.cc
@@ -72,7 +72,9 @@ void DecodeFourChar(UInt32 fc, std::string* out) {
}
static bool GetOSVersion(int* major, int* minor, int* bugfix) {
- RTC_DCHECK(major && minor && bugfix);
+ RTC_DCHECK(major);
+ RTC_DCHECK(minor);
+ RTC_DCHECK(bugfix);
struct utsname uname_info;
if (uname(&uname_info) != 0)
return false;

Powered by Google App Engine
This is Rietveld 408576698