landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@153357 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -70,7 +70,7 @@ ChangeCSSInlineStyleTxn::ValueIncludes(const nsAString &aValueList, const nsAStr
|
||||
valueList.Append(kNullCh); // put an extra null at the end
|
||||
|
||||
PRUnichar *value = ToNewUnicode(aValue);
|
||||
PRUnichar *start = (PRUnichar*)(const PRUnichar*)valueList.get();
|
||||
PRUnichar *start = valueList.BeginWriting();
|
||||
PRUnichar *end = start;
|
||||
|
||||
while (kNullCh != *start) {
|
||||
@@ -113,7 +113,7 @@ ChangeCSSInlineStyleTxn::RemoveValueFromListOfValues(nsAString & aValues, const
|
||||
nsAutoString outString;
|
||||
classStr.Append(kNullCh); // put an extra null at the end
|
||||
|
||||
PRUnichar *start = (PRUnichar*)(const PRUnichar*)classStr.get();
|
||||
PRUnichar *start = classStr.BeginWriting();
|
||||
PRUnichar *end = start;
|
||||
|
||||
while (kNullCh != *start) {
|
||||
|
||||
Reference in New Issue
Block a user