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/imgtool/charconv.cpp | |
| parent | 41681c1703244abe68cbcf3096ca259bd061cc08 (diff) | |
clang-modernize part 5
Diffstat (limited to 'src/tools/imgtool/charconv.cpp')
| -rw-r--r-- | src/tools/imgtool/charconv.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/imgtool/charconv.cpp b/src/tools/imgtool/charconv.cpp index 39b5953d799..34a912dcb89 100644 --- a/src/tools/imgtool/charconv.cpp +++ b/src/tools/imgtool/charconv.cpp @@ -24,7 +24,7 @@ static char *utf8_from_latin1(const char *src) /* validate input */ if (!src) { - return NULL; + return nullptr; } /* allocate space for result, twice the source len to be safe */ @@ -69,7 +69,7 @@ static char *latin1_from_utf8(const char *src) /* validate input */ if (!src) { - return NULL; + return nullptr; } /* allocate space for result */ @@ -128,7 +128,7 @@ char *utf8_from_native(imgtool_charset charset, const char *src) break; default: - result = NULL; + result = nullptr; break; } return result; @@ -155,7 +155,7 @@ char *native_from_utf8(imgtool_charset charset, const char *src) break; default: - result = NULL; + result = nullptr; break; } return result; |
