зеркало из https://github.com/mozilla/pjs.git
substitute calls to deprecated string API
This commit is contained in:
Родитель
efb808aedb
Коммит
eb2f9fd83e
|
@ -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))
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче