From abb5292365c95a765d677a50fab0ab592221cf1c Mon Sep 17 00:00:00 2001 From: "rickg%netscape.com" Date: Mon, 26 Jul 1999 00:40:34 +0000 Subject: [PATCH] replaced call to deprecated string API git-svn-id: svn://10.0.0.236/trunk@41076 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsWebShell.cpp | 4 ++-- mozilla/webshell/src/nsWebShell.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 792d95ba9dd..49d1e8ef6af 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -1965,11 +1965,11 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec, PRInt32 colon, fSlash; PRUnichar port; - fSlash=urlSpec.Find('/'); + fSlash=urlSpec.FindChar('/'); // if no scheme (protocol) is found, assume http. - if ( ((colon=urlSpec.Find(':')) == -1) // no colon at all + if ( ((colon=urlSpec.FindChar(':')) == -1) // no colon at all || ( (fSlash > -1) && (colon > fSlash) ) // the only colon comes after the first slash || ( (colon < urlSpec.Length()-1) // the first char after the first colon is a digit (i.e. a port) && ((port=urlSpec.CharAt(colon+1)) <= '9') diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index 792d95ba9dd..49d1e8ef6af 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -1965,11 +1965,11 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec, PRInt32 colon, fSlash; PRUnichar port; - fSlash=urlSpec.Find('/'); + fSlash=urlSpec.FindChar('/'); // if no scheme (protocol) is found, assume http. - if ( ((colon=urlSpec.Find(':')) == -1) // no colon at all + if ( ((colon=urlSpec.FindChar(':')) == -1) // no colon at all || ( (fSlash > -1) && (colon > fSlash) ) // the only colon comes after the first slash || ( (colon < urlSpec.Length()-1) // the first char after the first colon is a digit (i.e. a port) && ((port=urlSpec.CharAt(colon+1)) <= '9')