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:
darin%meer.net
2004-02-28 22:34:07 +00:00
parent 56a874f764
commit af98e4f306
97 changed files with 221 additions and 200 deletions

View File

@@ -405,7 +405,7 @@ nsScannerString::ReplaceCharacter(nsScannerIterator& aPosition, PRUnichar aChar)
// XXX Casting a const to non-const. Unless the base class
// provides support for writing iterators, this is the best
// that can be done.
PRUnichar* pos = (PRUnichar*)aPosition.get();
PRUnichar* pos = NS_CONST_CAST(PRUnichar*, aPosition.get());
*pos = aChar;
mIsDirty = PR_TRUE;