diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-22 03:23:12 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-22 03:23:12 +0200 |
commit | b87833b701a02fa960fab3fdb40d0b2d2c49a80e (patch) | |
tree | 521f653729196b42c3af066c82a4b5599d84e691 /c/data.cpp | |
parent | d7bb04a09c7f04b0c3a8580d6a9ccd6313656fcf (diff) | |
download | EpisodeBrowser-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/data.cpp')
-rw-r--r-- | c/data.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,7 +16,7 @@ struct InternetFile INTERNET_OPEN_TYPE_DIRECT, nullptr, nullptr, /*INTERNET_FLAG_ASYNC*/0); if (!hi) - throw Win32Error{}; + throw Win32Error(); hiUrl = InternetOpenUrl(hi, url, nullptr, 0, INTERNET_FLAG_NO_UI, 0); @@ -39,7 +39,7 @@ struct InternetFile if (InternetReadFile(hiUrl, buf, cb, &cbRead)) return cbRead; else - throw InternetError{}; + throw InternetError(); } HINTERNET hi; |