Fixed some busted code of a bogus type cast

This commit is contained in:
troy 1998-05-22 00:45:34 +00:00
parent aafa0d6ab4
commit e47c71bad0
2 changed files with 6 additions and 6 deletions

View File

@ -33,10 +33,10 @@ NS_HashNumber(const void* key)
PR_CALLBACK PRIntn
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");
delete bandRect;
NS_ASSERTION(nsnull != frameInfo, "null frameInfo");
delete frameInfo;
return HT_ENUMERATE_REMOVE;
}

View File

@ -33,10 +33,10 @@ NS_HashNumber(const void* key)
PR_CALLBACK PRIntn
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");
delete bandRect;
NS_ASSERTION(nsnull != frameInfo, "null frameInfo");
delete frameInfo;
return HT_ENUMERATE_REMOVE;
}