зеркало из https://github.com/mozilla/pjs.git
Fixed some busted code of a bogus type cast
This commit is contained in:
Родитель
cc52b356fe
Коммит
a19cf15e0f
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче