aboutsummaryrefslogtreecommitdiff
path: root/c/wcharptr.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-22 03:23:12 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-22 03:23:12 +0200
commitb87833b701a02fa960fab3fdb40d0b2d2c49a80e (patch)
tree521f653729196b42c3af066c82a4b5599d84e691 /c/wcharptr.cpp
parentd7bb04a09c7f04b0c3a8580d6a9ccd6313656fcf (diff)
downloadEpisodeBrowser-b87833b701a02fa960fab3fdb40d0b2d2c49a80e.tar.gz
Change initialization style.
Because I don't want to have to remember what classes have initializer_list overloads.
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 f7cb948..f659767 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;
}