fix bug 139633 - as a part of freezing nsAString, move Left/Right/Mid back into nsString, and fix consumers to start using Substring()
r=jag, sr=darin git-svn-id: svn://10.0.0.236/trunk@120220 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1728,8 +1728,8 @@ nsresult nsHTMLEditor::CreateDOMFragmentFromPaste(nsIDOMNSRange *aNSRange,
|
||||
{
|
||||
PRInt32 err, sep;
|
||||
sep = aInfoStr.FindChar((PRUnichar)',');
|
||||
aInfoStr.Left(numstr1, sep);
|
||||
aInfoStr.Right(numstr2, aInfoStr.Length() - (sep+1));
|
||||
numstr1 = Substring(aInfoStr, 0, sep);
|
||||
numstr2 = Substring(aInfoStr, sep+1, aInfoStr.Length() - (sep+1));
|
||||
*outRangeStartHint = numstr1.ToInteger(&err) + contextDepth;
|
||||
*outRangeEndHint = numstr2.ToInteger(&err) + contextDepth;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user