This commit is contained in:
rickg%netscape.com 1999-04-22 08:23:25 +00:00
Родитель 4a77810895
Коммит d550cc2e2e
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

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