mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 11:38:16 +00:00
landing phase 2 to remove deprecated string calls
This commit is contained in:
parent
3e1091328f
commit
6d722b2ecd
@ -33,7 +33,7 @@ struct EntityNode {
|
||||
mUnicode(-1)
|
||||
{}
|
||||
|
||||
EntityNode(const nsString& aStringValue)
|
||||
EntityNode(const nsCString& aStringValue)
|
||||
: mStr(),
|
||||
mUnicode(-1)
|
||||
{ // point to the incomming buffer
|
||||
@ -166,7 +166,7 @@ nsHTMLEntities::EntityToUnicode(const nsCString& aEntity)
|
||||
EntityNode node(aEntity);
|
||||
EntityNode* found = (EntityNode*)gEntityToCodeTree->FindItem(&node);
|
||||
if (found) {
|
||||
NS_ASSERTION(found->mStr.Equals(aEntity.mUStr,PR_FALSE,aEntity.mLength), "bad tree");
|
||||
NS_ASSERTION(found->mStr.Equals(aEntity), "bad tree");
|
||||
return found->mUnicode;
|
||||
}
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ struct EntityNode {
|
||||
mUnicode(-1)
|
||||
{}
|
||||
|
||||
EntityNode(const nsString& aStringValue)
|
||||
EntityNode(const nsCString& aStringValue)
|
||||
: mStr(),
|
||||
mUnicode(-1)
|
||||
{ // point to the incomming buffer
|
||||
@ -166,7 +166,7 @@ nsHTMLEntities::EntityToUnicode(const nsCString& aEntity)
|
||||
EntityNode node(aEntity);
|
||||
EntityNode* found = (EntityNode*)gEntityToCodeTree->FindItem(&node);
|
||||
if (found) {
|
||||
NS_ASSERTION(found->mStr.Equals(aEntity.mUStr,PR_FALSE,aEntity.mLength), "bad tree");
|
||||
NS_ASSERTION(found->mStr.Equals(aEntity), "bad tree");
|
||||
return found->mUnicode;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user