mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
substitute calls to deprecated string API
This commit is contained in:
parent
e56aff5e4a
commit
cf36fcda1a
@ -1068,7 +1068,7 @@ nsHTMLContentSinkStream::AddLeaf(const nsIParserNode& aNode){
|
||||
if (start < 0)
|
||||
start = 0;
|
||||
|
||||
indx = str.Find(' ',start);
|
||||
indx = str.FindChar(' ',PR_FALSE,start);
|
||||
|
||||
// if there is no break than just add it
|
||||
if (indx == kNotFound)
|
||||
|
@ -417,8 +417,8 @@ eAutoDetectResult nsXIFDTD::CanParse(nsString& aContentType, nsString& aCommand,
|
||||
offset = aBuffer.Find(kXIFCharset);
|
||||
if (kNotFound!=offset)
|
||||
{
|
||||
PRInt32 start = aBuffer.Find('"',offset);
|
||||
PRInt32 end = aBuffer.Find('"',start+1);
|
||||
PRInt32 start = aBuffer.FindChar('"',PR_FALSE,offset);
|
||||
PRInt32 end = aBuffer.FindChar('"',PR_FALSE,start+1);
|
||||
|
||||
if ((start != kNotFound) && (end != kNotFound))
|
||||
{
|
||||
|
@ -1068,7 +1068,7 @@ nsHTMLContentSinkStream::AddLeaf(const nsIParserNode& aNode){
|
||||
if (start < 0)
|
||||
start = 0;
|
||||
|
||||
indx = str.Find(' ',start);
|
||||
indx = str.FindChar(' ',PR_FALSE,start);
|
||||
|
||||
// if there is no break than just add it
|
||||
if (indx == kNotFound)
|
||||
|
@ -417,8 +417,8 @@ eAutoDetectResult nsXIFDTD::CanParse(nsString& aContentType, nsString& aCommand,
|
||||
offset = aBuffer.Find(kXIFCharset);
|
||||
if (kNotFound!=offset)
|
||||
{
|
||||
PRInt32 start = aBuffer.Find('"',offset);
|
||||
PRInt32 end = aBuffer.Find('"',start+1);
|
||||
PRInt32 start = aBuffer.FindChar('"',PR_FALSE,offset);
|
||||
PRInt32 end = aBuffer.FindChar('"',PR_FALSE,start+1);
|
||||
|
||||
if ((start != kNotFound) && (end != kNotFound))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user