Use more readable case-insensitive comparison function

IsSameAs(..., false) is not very clear, while CmpNoCase() hopefully is.

No real changes.
This commit is contained in:
Vadim Zeitlin
2021-01-09 21:06:18 +01:00
parent 88a3e9c0a3
commit 8ace65bbec

View File

@@ -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() )