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

Unified Diff: util/mac/launchd.mm

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 | « util/mac/launchd.h ('k') | util/mac/mac_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mac/launchd.mm
diff --git a/util/mac/launchd.mm b/util/mac/launchd.mm
index 5d9b5481cda25f61e09ce5b7e04babca4c8dd0e4..1b7807570f5628996656b4565c8e7897985d3c31 100644
--- a/util/mac/launchd.mm
+++ b/util/mac/launchd.mm
@@ -29,7 +29,7 @@ launch_data_t CFPropertyToLaunchData(CFPropertyListRef property_cf) {
// list elements according to which is more convenient and correct for any
// specific task.
- launch_data_t data_launch = NULL;
+ launch_data_t data_launch = nullptr;
CFTypeID type_id_cf = CFGetTypeID(property_cf);
if (type_id_cf == CFDictionaryGetTypeID()) {
@@ -40,14 +40,14 @@ launch_data_t CFPropertyToLaunchData(CFPropertyListRef property_cf) {
for (NSString* key in dictionary_ns) {
if (![key isKindOfClass:[NSString class]]) {
- return NULL;
+ return nullptr;
}
CFPropertyListRef value_cf =
static_cast<CFPropertyListRef>([dictionary_ns objectForKey:key]);
launch_data_t value_launch = CFPropertyToLaunchData(value_cf);
if (!value_launch) {
- return NULL;
+ return nullptr;
}
launch_data_dict_insert(
@@ -68,7 +68,7 @@ launch_data_t CFPropertyToLaunchData(CFPropertyListRef property_cf) {
static_cast<CFPropertyListRef>(element_ns);
launch_data_t element_launch = CFPropertyToLaunchData(element_cf);
if (!element_launch) {
- return NULL;
+ return nullptr;
}
launch_data_array_set_index(array_launch, element_launch, index++);
@@ -103,7 +103,7 @@ launch_data_t CFPropertyToLaunchData(CFPropertyListRef property_cf) {
break;
}
- default: { return NULL; }
+ default: { return nullptr; }
}
} else if (type_id_cf == CFBooleanGetTypeID()) {
« no previous file with comments | « util/mac/launchd.h ('k') | util/mac/mac_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698