зеркало из https://github.com/mozilla/pjs.git
sync up with nsString2.cpp
This commit is contained in:
Родитель
4a77810895
Коммит
d550cc2e2e
|
@ -315,7 +315,7 @@ nsPersistentProperties::SetProperty(const nsString& aKey, nsString& aNewValue,
|
|||
PRUint32 hashValue = nsCRT::HashValue(key, &len);
|
||||
PLHashEntry **hep = PL_HashTableRawLookup(mTable, hashValue, key);
|
||||
PLHashEntry *he = *hep;
|
||||
if (he && aOldValue) {
|
||||
if (he && aOldValue.GetUnicode()) {
|
||||
// XXX fix me
|
||||
}
|
||||
PL_HashTableRawAdd(mTable, hep, hashValue, aKey.ToNewUnicode(),
|
||||
|
@ -343,7 +343,7 @@ nsPersistentProperties::Subclass(nsIPersistentProperties* aSubclass)
|
|||
NS_IMETHODIMP
|
||||
nsPersistentProperties::GetProperty(const nsString& aKey, nsString& aValue)
|
||||
{
|
||||
const PRUnichar *key = aKey;
|
||||
const PRUnichar *key = aKey.GetUnicode();
|
||||
PRUint32 len;
|
||||
PRUint32 hashValue = nsCRT::HashValue(key, &len);
|
||||
PLHashEntry **hep = PL_HashTableRawLookup(mTable, hashValue, key);
|
||||
|
|
|
@ -315,7 +315,7 @@ nsPersistentProperties::SetProperty(const nsString& aKey, nsString& aNewValue,
|
|||
PRUint32 hashValue = nsCRT::HashValue(key, &len);
|
||||
PLHashEntry **hep = PL_HashTableRawLookup(mTable, hashValue, key);
|
||||
PLHashEntry *he = *hep;
|
||||
if (he && aOldValue) {
|
||||
if (he && aOldValue.GetUnicode()) {
|
||||
// XXX fix me
|
||||
}
|
||||
PL_HashTableRawAdd(mTable, hep, hashValue, aKey.ToNewUnicode(),
|
||||
|
@ -343,7 +343,7 @@ nsPersistentProperties::Subclass(nsIPersistentProperties* aSubclass)
|
|||
NS_IMETHODIMP
|
||||
nsPersistentProperties::GetProperty(const nsString& aKey, nsString& aValue)
|
||||
{
|
||||
const PRUnichar *key = aKey;
|
||||
const PRUnichar *key = aKey.GetUnicode();
|
||||
PRUint32 len;
|
||||
PRUint32 hashValue = nsCRT::HashValue(key, &len);
|
||||
PLHashEntry **hep = PL_HashTableRawLookup(mTable, hashValue, key);
|
||||
|
|
Загрузка…
Ссылка в новой задаче