From 8ace65bbecac12133271fff2e203ac314ee0b497 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 9 Jan 2021 21:06:18 +0100 Subject: [PATCH] Use more readable case-insensitive comparison function IsSameAs(..., false) is not very clear, while CmpNoCase() hopefully is. No real changes. --- src/msw/webrequest_winhttp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/webrequest_winhttp.cpp b/src/msw/webrequest_winhttp.cpp index 48e0d130b3..21796c977e 100644 --- a/src/msw/webrequest_winhttp.cpp +++ b/src/msw/webrequest_winhttp.cpp @@ -239,7 +239,7 @@ void wxWebRequestWinHTTP::Start() { // Parse the URL wxURI uri(m_url); - bool isSecure = uri.GetScheme().IsSameAs("HTTPS", false); + const bool isSecure = uri.GetScheme().CmpNoCase("HTTPS") == 0; int port; if ( !uri.HasPort() )