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/win.h | |
parent | 8351d4c42c76584415e02a40d41f497a8f042c72 (diff) | |
download | EpisodeBrowser-bd857d24443b8c8f5d2f58047c3f8ac5f058acea.tar.gz |
Make FileView more type-safe.
Diffstat (limited to 'c/win.h')
-rw-r--r-- | c/win.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -53,7 +53,7 @@ T* Library::GetProcAddress(const char* const szProc) noexcept template <typename T> inline T Require(const T x) { - if (!x) throw Win32Error(); + if (!x) throw Win32Error{}; return x; } @@ -62,7 +62,7 @@ template <typename T> inline T Prefer(const T x) { if (!x) { - EBMessageBox(Win32Error().What(), L"System Error", MB_ICONWARNING); + EBMessageBox(Win32Error{}.What(), L"System Error", MB_ICONWARNING); return (T)0; } return x; |