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:
parent
9f7baabe03
commit
61439bc35d
@ -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)
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user