mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Fixed some busted code of a bogus type cast
This commit is contained in:
parent
aafa0d6ab4
commit
e47c71bad0
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user