diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-04 18:18:37 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-04 18:19:37 +0200 |
commit | 94119478207034b767c1d0a4fa5d8950f7b07b02 (patch) | |
tree | ce9ffb57a4947855b09c54017f6b2abe3e8af6d3 /c/wcharptr.cpp | |
parent | 1c218db34a3bd4aba5c1c088561b91b02e691fde (diff) | |
download | EpisodeBrowser-94119478207034b767c1d0a4fa5d8950f7b07b02.tar.gz |
Use C++ casts, nullptr.
Diffstat (limited to 'c/wcharptr.cpp')
-rw-r--r-- | c/wcharptr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/wcharptr.cpp b/c/wcharptr.cpp index 240fff5..25ddae1 100644 --- a/c/wcharptr.cpp +++ b/c/wcharptr.cpp @@ -46,7 +46,7 @@ WcharPtr::~WcharPtr() noexcept WcharPtr WcharPtr::FromNarrow(const char* const src, const int cp) { int cbMultiByte = strlen(src)+1; - int cchWideChar = MultiByteToWideChar(cp, 0, src, cbMultiByte, NULL, 0); + int cchWideChar = MultiByteToWideChar(cp, 0, src, cbMultiByte, nullptr, 0); wchar_t* dst = new wchar_t[cchWideChar]; if (!MultiByteToWideChar(cp, 0, src, cbMultiByte, dst, cchWideChar)) { delete dst; |