зеркало из https://github.com/mozilla/gecko-dev.git
remove calls to deprecated string methods
This commit is contained in:
Родитель
3d6f8a6d1d
Коммит
e367c59cd0
|
@ -1691,7 +1691,7 @@ nsXMLContentSink::ProcessEndSCRIPTTag(const nsIParserNode& aNode)
|
|||
nsresult result = NS_OK;
|
||||
if (mInScript) {
|
||||
nsAutoString script;
|
||||
script.SetString(mText, mTextLength);
|
||||
script.Assign(mText, mTextLength);
|
||||
result = EvaluateScript(script, mScriptLineNo, mScriptLanguageVersion);
|
||||
FlushText(PR_FALSE);
|
||||
mInScript = PR_FALSE;
|
||||
|
|
|
@ -230,7 +230,7 @@ NS_IMETHODIMP
|
|||
nsXMLDocument::GetContentType(nsString& aContentType) const
|
||||
{
|
||||
// XXX Should get document type from incoming stream
|
||||
aContentType.SetString("text/xml");
|
||||
aContentType.Assign("text/xml");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -1691,7 +1691,7 @@ nsXMLContentSink::ProcessEndSCRIPTTag(const nsIParserNode& aNode)
|
|||
nsresult result = NS_OK;
|
||||
if (mInScript) {
|
||||
nsAutoString script;
|
||||
script.SetString(mText, mTextLength);
|
||||
script.Assign(mText, mTextLength);
|
||||
result = EvaluateScript(script, mScriptLineNo, mScriptLanguageVersion);
|
||||
FlushText(PR_FALSE);
|
||||
mInScript = PR_FALSE;
|
||||
|
|
|
@ -230,7 +230,7 @@ NS_IMETHODIMP
|
|||
nsXMLDocument::GetContentType(nsString& aContentType) const
|
||||
{
|
||||
// XXX Should get document type from incoming stream
|
||||
aContentType.SetString("text/xml");
|
||||
aContentType.Assign("text/xml");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче