small changes to clients of string converting APIs

git-svn-id: svn://10.0.0.236/trunk@64160 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%netscape.com 2000-03-26 08:50:15 +00:00
parent 9f7baabe03
commit 61439bc35d
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ PrefEnumCallback(const char* aName, void* aClosure)
curPrefName.Mid(langGroup, p1+1, curPrefName.Length()-p1-1);
curPrefName.Mid(genName, p2+1, p1-p2-1);
if(langGroup == nsCAutoString("x-unicode"))
if(langGroup.Equals(nsCAutoString("x-unicode")))
return;
ScriptCode script = Self->MapLangGroupToScriptCode(langGroup);
if(script >= smUninterp)

View File

@ -687,7 +687,7 @@ DeviceContextImpl::GetLangGroup(const nsString& aCharSet, nsIAtom** aLangGroup)
LangGroupEntry* p = langGroups;
while (p->mCharSet) {
if (aCharSet == p->mCharSet) {
if (aCharSet.Equals(p->mCharSet)) {
if (!p->mAtom) {
p->mAtom = NS_NewAtom(p->mLangGroup);
if (p->mAtom) {