aboutsummaryrefslogtreecommitdiff
path: root/c/win.cpp
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.cpp
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.cpp')
-rw-r--r--c/win.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/win.cpp b/c/win.cpp
index 601f82c..548c951 100644
--- a/c/win.cpp
+++ b/c/win.cpp
@@ -170,7 +170,7 @@ const wchar_t* Win32Error::What() const noexcept
InternetError::InternetError(DWORD codeSystem)
{
if (codeSystem != ERROR_INTERNET_EXTENDED_ERROR)
- throw Win32Error{codeSystem};
+ throw Win32Error(codeSystem);
DWORD len, cch;
InternetGetLastResponseInfo(&code, nullptr, &len);
@@ -178,12 +178,12 @@ InternetError::InternetError(DWORD codeSystem)
cch = len+1;
m_szMsg = new char[cch];
if (!InternetGetLastResponseInfoA(&code, m_szMsg, &cch))
- throw Win32Error{};
+ throw Win32Error();
cch = len+1;
m_wszMsg = new wchar_t[cch];
if (!InternetGetLastResponseInfo(&code, m_wszMsg, &len))
- throw Win32Error{};
+ throw Win32Error();
}
InternetError::~InternetError()
@@ -216,7 +216,7 @@ Library::Library(const wchar_t* const lib)
{
m_hModule = LoadLibrary(lib);
if (!m_hModule)
- throw Win32Error{};
+ throw Win32Error();
}
Library::~Library()