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/srcclean.cpp | |
| parent | 41681c1703244abe68cbcf3096ca259bd061cc08 (diff) | |
clang-modernize part 5
Diffstat (limited to 'src/tools/srcclean.cpp')
| -rw-r--r-- | src/tools/srcclean.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/srcclean.cpp b/src/tools/srcclean.cpp index 24db9bca880..0af298a4441 100644 --- a/src/tools/srcclean.cpp +++ b/src/tools/srcclean.cpp @@ -39,7 +39,7 @@ static int le_convert(char *buffer, int size) /* brute force */ *end = 0; pos = strchr(buffer, 0x0d); - while (pos != NULL) + while (pos != nullptr) { memmove(pos, pos+1,end - pos + 1); size--; @@ -111,7 +111,7 @@ int main(int argc, char *argv[]) /* read the file */ file = fopen(argv[1], "rb"); - if (file == NULL) + if (file == nullptr) { fprintf(stderr, "Can't open %s\n", argv[1]); return 1; @@ -120,7 +120,7 @@ int main(int argc, char *argv[]) fclose(file); /* check whether we have dos line endings and are in unix mode */ - if (unix_le && (strchr((char *) original, 0x0d) != NULL)) + if (unix_le && (strchr((char *) original, 0x0d) != nullptr)) fixed_dos_style = 1; /* determine if we are a C file */ |
