Fixing a compiler warning (bug 125949). r=bzbarsky, sr=alecf.

This commit is contained in:
bryner%netscape.com 2002-02-18 22:42:37 +00:00
Родитель 9de5f23201
Коммит d509bd510d
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -84,9 +84,8 @@ nsStaticCaseInsensitiveNameTable::Init(const char* Names[], PRInt32 Count)
NS_ASSERTION(temp1.Equals(temp2), "upper case char in table");
}
#endif
// use placement-new to initialize the string object
nsDependentCString *str =
new (&mNameArray[index]) nsDependentCString(raw);
// use placement-new to initialize the string object
new (&mNameArray[index]) nsDependentCString(raw);
nsCStringKey key(raw, len, nsCStringKey::NEVER_OWN);
mNameTable->Put(&key, (void*)(index+1)); // to make 0 != nsnull
}