diff options
author | 2015-12-04 07:06:18 +0100 | |
---|---|---|
committer | 2015-12-04 07:06:18 +0100 | |
commit | 5a2f80dcde2e76356bf568f1e2d71b054a7db45b (patch) | |
tree | 31e8369980a2e4548223f529c31e8ca6ade5ce20 /src/tools/unidasm.cpp | |
parent | 41681c1703244abe68cbcf3096ca259bd061cc08 (diff) |
clang-modernize part 5
Diffstat (limited to 'src/tools/unidasm.cpp')
-rw-r--r-- | src/tools/unidasm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/unidasm.cpp b/src/tools/unidasm.cpp index 7a245886d6a..13eabe31c59 100644 --- a/src/tools/unidasm.cpp +++ b/src/tools/unidasm.cpp @@ -454,7 +454,7 @@ static int parse_options(int argc, char *argv[], options *opts) } // filename - else if (opts->filename == NULL) + else if (opts->filename == nullptr) opts->filename = curarg; // fail @@ -467,7 +467,7 @@ static int parse_options(int argc, char *argv[], options *opts) goto usage; // if no file or no architecture, fail - if (opts->filename == NULL || opts->dasm == NULL) + if (opts->filename == nullptr || opts->dasm == nullptr) goto usage; return 0; @@ -545,7 +545,7 @@ int main(int argc, char *argv[]) int numchunks; // disassemble - pcdelta = (*opts.dasm->func)(NULL, buffer, curpc, oprom, oprom, opts.mode) & DASMFLAG_LENGTHMASK; + pcdelta = (*opts.dasm->func)(nullptr, buffer, curpc, oprom, oprom, opts.mode) & DASMFLAG_LENGTHMASK; if (opts.dasm->pcshift < 0) numbytes = pcdelta << -opts.dasm->pcshift; |