X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34e0d9f874fe4ba3dd8112a68831cb20bb80cac7..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/common/fs_inet.cpp?ds=inline diff --git a/src/common/fs_inet.cpp b/src/common/fs_inet.cpp index f2add64583..033b1d7b55 100644 --- a/src/common/fs_inet.cpp +++ b/src/common/fs_inet.cpp @@ -67,11 +67,11 @@ protected: static wxString StripProtocolAnchor(const wxString& location) { wxString myloc(location.BeforeLast(wxT('#'))); - if (myloc.IsEmpty()) myloc = location.AfterFirst(wxT(':')); + if (myloc.empty()) myloc = location.AfterFirst(wxT(':')); else myloc = myloc.AfterFirst(wxT(':')); // fix malformed url: - if (myloc.Left(2) != wxT("//")) + if (!myloc.Left(2).IsSameAs(wxT("//"))) { if (myloc.GetChar(0) != wxT('/')) myloc = wxT("//") + myloc; else myloc = wxT("/") + myloc;