mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
replaced call to deprecated string API
This commit is contained in:
parent
65fcb776bb
commit
5669f40143
@ -2297,11 +2297,11 @@ void nsWebShellWindow::LoadContentAreas() {
|
||||
for (endPos = 0; endPos < searchSpec.Length(); ) {
|
||||
// extract contentAreaID and URL substrings
|
||||
begPos = endPos;
|
||||
eqPos = searchSpec.Find('=', begPos);
|
||||
eqPos = searchSpec.FindChar('=', PR_FALSE,begPos);
|
||||
if (eqPos < 0)
|
||||
break;
|
||||
|
||||
endPos = searchSpec.Find(';', eqPos);
|
||||
endPos = searchSpec.FindChar(';', PR_FALSE,eqPos);
|
||||
if (endPos < 0)
|
||||
endPos = searchSpec.Length();
|
||||
searchSpec.Mid(contentAreaID, begPos, eqPos-begPos);
|
||||
@ -2749,7 +2749,7 @@ nsWebShellWindow::HandleUrl(const PRUnichar * aCommand, const PRUnichar * aURLSp
|
||||
nsAutoString url(aURLSpec);
|
||||
nsresult rv;
|
||||
|
||||
PRInt32 offset = url.Find(":");
|
||||
PRInt32 offset = url.FindChar(':');
|
||||
if (offset <= 0)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user