diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-17 02:33:26 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-17 02:33:26 +0200 |
commit | bd857d24443b8c8f5d2f58047c3f8ac5f058acea (patch) | |
tree | 0ef5f3c9abf5ccd6ee6a9e376ceac985de2409fd /c/wcharptr.cpp | |
parent | 8351d4c42c76584415e02a40d41f497a8f042c72 (diff) | |
download | EpisodeBrowser-bd857d24443b8c8f5d2f58047c3f8ac5f058acea.tar.gz |
Make FileView more type-safe.
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 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; } |