From b87833b701a02fa960fab3fdb40d0b2d2c49a80e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 22 Aug 2022 03:23:12 +0200 Subject: Change initialization style. Because I don't want to have to remember what classes have initializer_list overloads. --- c/win.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/win.h') 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 inline T Require(const T x) { - if (!x) throw Win32Error{}; + if (!x) throw Win32Error(); return x; } @@ -83,7 +83,7 @@ template 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; -- cgit v1.2.3