Make SetWidget assertion more particular about when to bomb

This commit is contained in:
kipp%netscape.com 1999-04-03 19:01:15 +00:00
Родитель 365dc91b93
Коммит b45ad2aecd
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -974,8 +974,11 @@ NS_IMETHODIMP nsScrollingView :: CreateScrollControls(nsNativeWidget aNative)
NS_IMETHODIMP nsScrollingView :: SetWidget(nsIWidget *aWidget)
{
NS_ASSERTION(PR_FALSE, "please don't try and set a widget here");
return NS_ERROR_FAILURE;
if (nsnull != aWidget) {
NS_ASSERTION(PR_FALSE, "please don't try and set a widget here");
return NS_ERROR_FAILURE;
}
return NS_OK;
}
NS_IMETHODIMP nsScrollingView :: ComputeScrollOffsets(PRBool aAdjustWidgets)