Fixed some busted code of a bogus type cast

This commit is contained in:
troy 1998-05-22 00:45:34 +00:00
Родитель cc52b356fe
Коммит a19cf15e0f
2 изменённых файлов: 6 добавлений и 6 удалений

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

@ -33,10 +33,10 @@ NS_HashNumber(const void* key)
PR_CALLBACK PRIntn PR_CALLBACK PRIntn
NS_RemoveFrameInfoEntries(PLHashEntry* he, PRIntn i, void* arg) NS_RemoveFrameInfoEntries(PLHashEntry* he, PRIntn i, void* arg)
{ {
SpaceManager::BandRect* bandRect = (SpaceManager::BandRect*)he->value; SpaceManager::FrameInfo* frameInfo = (SpaceManager::FrameInfo*)he->value;
NS_ASSERTION(nsnull != bandRect, "null band rect"); NS_ASSERTION(nsnull != frameInfo, "null frameInfo");
delete bandRect; delete frameInfo;
return HT_ENUMERATE_REMOVE; return HT_ENUMERATE_REMOVE;
} }

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

@ -33,10 +33,10 @@ NS_HashNumber(const void* key)
PR_CALLBACK PRIntn PR_CALLBACK PRIntn
NS_RemoveFrameInfoEntries(PLHashEntry* he, PRIntn i, void* arg) NS_RemoveFrameInfoEntries(PLHashEntry* he, PRIntn i, void* arg)
{ {
SpaceManager::BandRect* bandRect = (SpaceManager::BandRect*)he->value; SpaceManager::FrameInfo* frameInfo = (SpaceManager::FrameInfo*)he->value;
NS_ASSERTION(nsnull != bandRect, "null band rect"); NS_ASSERTION(nsnull != frameInfo, "null frameInfo");
delete bandRect; delete frameInfo;
return HT_ENUMERATE_REMOVE; return HT_ENUMERATE_REMOVE;
} }