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

Unified Diff: tools/catch_exception_tool.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/thread_snapshot_mac.cc ('k') | tools/exception_port_tool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/catch_exception_tool.cc
diff --git a/tools/catch_exception_tool.cc b/tools/catch_exception_tool.cc
index a6db7cebe2da2f3e661228fb57f9c369161f19ff..65de259943c508f268595e7a073144d6ed9ff57c 100644
--- a/tools/catch_exception_tool.cc
+++ b/tools/catch_exception_tool.cc
@@ -200,18 +200,18 @@ int CatchExceptionToolMain(int argc, char* argv[]) {
Options options = {};
const struct option long_options[] = {
- {"file", required_argument, NULL, kOptionFile},
- {"mach_service", required_argument, NULL, kOptionMachService},
- {"nonblocking", no_argument, NULL, kOptionNonblocking},
- {"persistent", no_argument, NULL, kOptionPersistent},
- {"timeout", required_argument, NULL, kOptionTimeout},
- {"help", no_argument, NULL, kOptionHelp},
- {"version", no_argument, NULL, kOptionVersion},
- {NULL, 0, NULL, 0},
+ {"file", required_argument, nullptr, kOptionFile},
+ {"mach_service", required_argument, nullptr, kOptionMachService},
+ {"nonblocking", no_argument, nullptr, kOptionNonblocking},
+ {"persistent", no_argument, nullptr, kOptionPersistent},
+ {"timeout", required_argument, nullptr, kOptionTimeout},
+ {"help", no_argument, nullptr, kOptionHelp},
+ {"version", no_argument, nullptr, kOptionVersion},
+ {nullptr, 0, nullptr, 0},
};
int opt;
- while ((opt = getopt_long(argc, argv, "f:m:npt:", long_options, NULL)) !=
+ while ((opt = getopt_long(argc, argv, "f:m:npt:", long_options, nullptr)) !=
-1) {
switch (opt) {
case kOptionFile:
@@ -240,7 +240,7 @@ int CatchExceptionToolMain(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 | « snapshot/thread_snapshot_mac.cc ('k') | tools/exception_port_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698