bug 361058, gcc2.95.3 fails to compile nsListBoxBodyFrame.cpp, r+sr=roc

This commit is contained in:
Olli.Pettay%helsinki.fi 2006-11-18 04:42:20 +00:00
Родитель 88ee17883c
Коммит 32e425dbb4
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -1115,7 +1115,7 @@ nsListBoxBodyFrame::GetFirstItemBox(PRInt32 aOffset, PRBool* aCreated)
mBottomFrame = mTopFrame;
if (mTopFrame) {
return mTopFrame->IsBoxFrame() ? mTopFrame : nsnull;
return mTopFrame->IsBoxFrame() ? NS_STATIC_CAST(nsIBox*, mTopFrame) : nsnull;
}
// top frame was cleared out
@ -1123,7 +1123,7 @@ nsListBoxBodyFrame::GetFirstItemBox(PRInt32 aOffset, PRBool* aCreated)
mBottomFrame = mTopFrame;
if (mTopFrame && mRowsToPrepend <= 0) {
return mTopFrame->IsBoxFrame() ? mTopFrame : nsnull;
return mTopFrame->IsBoxFrame() ? NS_STATIC_CAST(nsIBox*, mTopFrame) : nsnull;
}
// At this point, we either have no frames at all,
@ -1165,7 +1165,7 @@ nsListBoxBodyFrame::GetFirstItemBox(PRInt32 aOffset, PRBool* aCreated)
mBottomFrame = mTopFrame;
return mTopFrame->IsBoxFrame() ? mTopFrame : nsnull;
return mTopFrame->IsBoxFrame() ? NS_STATIC_CAST(nsIBox*, mTopFrame) : nsnull;
} else
return GetFirstItemBox(++aOffset, 0);
}