aboutsummaryrefslogtreecommitdiff
path: root/c/wcharptr.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-04 18:18:37 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-04 18:19:37 +0200
commit94119478207034b767c1d0a4fa5d8950f7b07b02 (patch)
treece9ffb57a4947855b09c54017f6b2abe3e8af6d3 /c/wcharptr.cpp
parent1c218db34a3bd4aba5c1c088561b91b02e691fde (diff)
downloadEpisodeBrowser-94119478207034b767c1d0a4fa5d8950f7b07b02.tar.gz
Use C++ casts, nullptr.
Diffstat (limited to 'c/wcharptr.cpp')
-rw-r--r--c/wcharptr.cpp2
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;