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

Unified Diff: webrtc/system_wrappers/source/cpu_info.cc

Issue 2685783014: Replace NULL with nullptr in all C++ files. (Closed)
Patch Set: Fixing android. Created 3 years, 10 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/system_wrappers/source/cpu_info.cc
diff --git a/webrtc/system_wrappers/source/cpu_info.cc b/webrtc/system_wrappers/source/cpu_info.cc
index 4a61c7a6f3a00e9fdaf4af4235fb7fce4e98b7de..67f7dc2040c1607f2bfd4489bdc0c312d3eb2f86 100644
--- a/webrtc/system_wrappers/source/cpu_info.cc
+++ b/webrtc/system_wrappers/source/cpu_info.cc
@@ -39,7 +39,7 @@ static int DetectNumberOfCores() {
#elif defined(WEBRTC_MAC)
int name[] = {CTL_HW, HW_AVAILCPU};
size_t size = sizeof(number_of_cores);
- if (0 != sysctl(name, 2, &number_of_cores, &size, NULL, 0)) {
+ if (0 != sysctl(name, 2, &number_of_cores, &size, nullptr, 0)) {
LOG(LS_ERROR) << "Failed to get number of cores";
number_of_cores = 1;
}

Powered by Google App Engine
This is Rietveld 408576698