aboutsummaryrefslogtreecommitdiff
path: root/c/wcharptr.cpp
diff options
context:
space:
mode:
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;