aboutsummaryrefslogtreecommitdiff
path: root/c/data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/data.cpp')
-rw-r--r--c/data.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/c/data.cpp b/c/data.cpp
index 58fcde7..c1e7177 100644
--- a/c/data.cpp
+++ b/c/data.cpp
@@ -1,4 +1,3 @@
-#include <algorithm>
#include <windows.h>
#include <wininet.h>
#include <libxml/HTMLparser.h>
@@ -12,9 +11,7 @@ struct InternetFile
{
InternetFile(const wchar_t* url)
{
- hi = InternetOpen(L"Episode Browser",
- INTERNET_OPEN_TYPE_DIRECT, nullptr, nullptr,
- /*INTERNET_FLAG_ASYNC*/0);
+ hi = InternetOpen(L"Episode Browser", INTERNET_OPEN_TYPE_DIRECT, nullptr, nullptr, 0);
if (!hi)
throw Win32Error();
@@ -73,7 +70,7 @@ bool WcharsFromXmlchars(wchar_t (&dst)[N], XmlCharPtr utf8) noexcept
{
/* Truncate if source is larger than destination. */
int lenUtf8 = xmlStrlen(utf8);
- utf8[std::min(N, static_cast<size_t>(lenUtf8))] = 0;
+ utf8[Min(N, static_cast<size_t>(lenUtf8))] = 0;
/* Convert internal representation from UTF-8 to Latin-1,
* which seems to actually convert the string to proper UTF-8