aboutsummaryrefslogtreecommitdiff
path: root/c/win.h
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/win.h
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/win.h')
-rw-r--r--c/win.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/win.h b/c/win.h
index f5bda59..06de198 100644
--- a/c/win.h
+++ b/c/win.h
@@ -74,7 +74,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;
}
@@ -83,7 +83,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;