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

Unified Diff: tools/on_demand_service_tool.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 | « tools/exception_port_tool.cc ('k') | util/mac/launchd.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/on_demand_service_tool.mm
diff --git a/tools/on_demand_service_tool.mm b/tools/on_demand_service_tool.mm
index 460f4cd8eda6c814e143f62f06b2e6ac1ea9916d..ce4ba0fe929084f00ab1fc6a7894605f9690199a 100644
--- a/tools/on_demand_service_tool.mm
+++ b/tools/on_demand_service_tool.mm
@@ -82,17 +82,18 @@ int OnDemandServiceToolMain(int argc, char* argv[]) {
} options = {};
const struct option long_options[] = {
- {"load", no_argument, NULL, kOptionLoadJob},
- {"unload", no_argument, NULL, kOptionUnloadJob},
- {"label", required_argument, NULL, kOptionJobLabel},
- {"mach_service", required_argument, NULL, kOptionMachService},
- {"help", no_argument, NULL, kOptionHelp},
- {"version", no_argument, NULL, kOptionVersion},
- {NULL, 0, NULL, 0},
+ {"load", no_argument, nullptr, kOptionLoadJob},
+ {"unload", no_argument, nullptr, kOptionUnloadJob},
+ {"label", required_argument, nullptr, kOptionJobLabel},
+ {"mach_service", required_argument, nullptr, kOptionMachService},
+ {"help", no_argument, nullptr, kOptionHelp},
+ {"version", no_argument, nullptr, kOptionVersion},
+ {nullptr, 0, nullptr, 0},
};
int opt;
- while ((opt = getopt_long(argc, argv, "+LUl:m:", long_options, NULL)) != -1) {
+ while ((opt = getopt_long(argc, argv, "+LUl:m:", long_options, nullptr)) !=
+ -1) {
switch (opt) {
case kOptionLoadJob:
options.operation = kOperationLoadJob;
@@ -113,7 +114,7 @@ int OnDemandServiceToolMain(int argc, char* argv[]) {
ToolSupport::Version(me);
return EXIT_SUCCESS;
default:
- ToolSupport::UsageHint(me, NULL);
+ ToolSupport::UsageHint(me, nullptr);
return EXIT_FAILURE;
}
}
« no previous file with comments | « tools/exception_port_tool.cc ('k') | util/mac/launchd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698