Using P.Getchar(i) instead of p[i]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bart A.M. Jourquin
2000-01-27 08:54:44 +00:00
parent e98eb0f278
commit b2f60e03cc
2 changed files with 10 additions and 10 deletions

View File

@@ -87,7 +87,7 @@ wxFSFile* wxInternetFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxStri
// fix malformed url:
if (myloc.Left(2) != wxT("//"))
{
if (myloc[0] != wxT('/')) myloc = wxT("//") + myloc;
if (myloc.GetChar(0) != wxT('/')) myloc = wxT("//") + myloc;
else myloc = wxT("/") + myloc;
}
if (myloc.Mid(2).Find(wxT('/')) == wxNOT_FOUND) myloc << wxT('/');