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 f659767..f7cb948 100644
--- a/c/wcharptr.cpp
+++ b/c/wcharptr.cpp
@@ -11,7 +11,7 @@ WcharPtr WcharPtr::FromNarrow(const char* const src, const int cp)
wchar_t* dst = new wchar_t[cchWide];
if (!MultiByteToWideChar(cp, 0, src, cchNarrow, dst, cchWide)) {
delete dst;
- throw Win32Error();
+ throw Win32Error{};
}
return dst;
}