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:
troy%netscape.com
1999-02-14 05:56:15 +00:00
parent 658dac2de0
commit 3c90d2a780
2 changed files with 3 additions and 2 deletions

View File

@@ -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)) {