diff options
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; |