From bd857d24443b8c8f5d2f58047c3f8ac5f058acea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 17 Aug 2022 02:33:26 +0200 Subject: Make FileView more type-safe. --- c/wcharptr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/wcharptr.cpp') 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; } -- cgit v1.2.3