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

Unified Diff: snapshot/system_snapshot_mac.cc

Issue 656703002: Convert NULL to nullptr (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Fix 80-column violations Created 6 years, 2 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 | « snapshot/process_snapshot.h ('k') | snapshot/system_snapshot_mac_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/system_snapshot_mac.cc
diff --git a/snapshot/system_snapshot_mac.cc b/snapshot/system_snapshot_mac.cc
index 37b3eca26cb3e8512696f56ad8dc6025ac15b6d3..2f6e6985d0fe8e619f46ed5cbc25e5ee050438e4 100644
--- a/snapshot/system_snapshot_mac.cc
+++ b/snapshot/system_snapshot_mac.cc
@@ -35,7 +35,7 @@ template <typename T>
T ReadIntSysctlByName(const char* name, T default_value) {
T value;
size_t value_len = sizeof(value);
- if (sysctlbyname(name, &value, &value_len, NULL, 0) != 0) {
+ if (sysctlbyname(name, &value, &value_len, nullptr, 0) != 0) {
PLOG(WARNING) << "sysctlbyname " << name;
return default_value;
}
@@ -51,7 +51,7 @@ T CastIntSysctlByName(const char* name, T default_value) {
std::string ReadStringSysctlByName(const char* name) {
size_t buf_len;
- if (sysctlbyname(name, NULL, &buf_len, NULL, 0) != 0) {
+ if (sysctlbyname(name, nullptr, &buf_len, nullptr, 0) != 0) {
PLOG(WARNING) << "sysctlbyname (size) " << name;
return std::string();
}
@@ -61,7 +61,7 @@ std::string ReadStringSysctlByName(const char* name) {
}
std::string value(buf_len - 1, '\0');
- if (sysctlbyname(name, &value[0], &buf_len, NULL, 0) != 0) {
+ if (sysctlbyname(name, &value[0], &buf_len, nullptr, 0) != 0) {
PLOG(WARNING) << "sysctlbyname " << name;
return std::string();
}
@@ -89,8 +89,8 @@ SystemSnapshotMac::SystemSnapshotMac()
: SystemSnapshot(),
os_version_full_(),
os_version_build_(),
- process_reader_(NULL),
- snapshot_time_(NULL),
+ process_reader_(nullptr),
+ snapshot_time_(nullptr),
os_version_major_(0),
os_version_minor_(0),
os_version_bugfix_(0),
« no previous file with comments | « snapshot/process_snapshot.h ('k') | snapshot/system_snapshot_mac_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698