Added some "const" to code that was retrieving a pointer to the internal
buffer managed by nsString git-svn-id: svn://10.0.0.236/trunk@20678 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -103,7 +103,8 @@ PRBool nsFont::EnumerateFamilies(nsFontFamilyEnumFunc aFunc, void* aData) const
|
||||
|
||||
familyList.Append(kNullCh); // put an extra null at the end
|
||||
|
||||
PRUnichar* start = (PRUnichar*)familyList;
|
||||
// XXX This code is evil...
|
||||
PRUnichar* start = (PRUnichar*)(const PRUnichar*)familyList;
|
||||
PRUnichar* end = start;
|
||||
|
||||
while (running && (kNullCh != *start)) {
|
||||
|
||||
Reference in New Issue
Block a user