Make sure we initialize members of the base widget

git-svn-id: svn://10.0.0.236/trunk@44212 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com 1999-08-24 01:00:01 +00:00
parent e6562edf8a
commit fb1cee7a7e

View File

@ -78,23 +78,27 @@ nsBaseWidget::Enumerator::QueryInterface(REFNSIID aIID, void** aInstancePtr)
// nsBaseWidget constructor
//
//-------------------------------------------------------------------------
nsBaseWidget::nsBaseWidget() :
mBounds(0,0,0,0)
nsBaseWidget::nsBaseWidget()
: mClientData(nsnull)
, mEventCallback(nsnull)
, mContext(nsnull)
, mAppShell(nsnull)
, mToolkit(nsnull)
, mMouseListener(nsnull)
, mEventListener(nsnull)
, mMenuListener(nsnull)
, mCursor(eCursor_standard)
, mBorderStyle(eBorderStyle_none)
, mIsShiftDown(PR_FALSE)
, mIsControlDown(PR_FALSE)
, mIsAltDown(PR_FALSE)
, mIsDestroying(PR_FALSE)
, mOnDestroyCalled(PR_FALSE)
, mBounds(0,0,0,0)
, mVScrollbar(nsnull)
{
NS_NewISupportsArray(getter_AddRefs(mChildren));
mEventCallback = nsnull;
mToolkit = nsnull;
mAppShell = nsnull;
mMouseListener = nsnull;
mEventListener = nsnull;
mMenuListener = nsnull;
mClientData = nsnull;
mContext = nsnull;
mCursor = eCursor_standard;
mBorderStyle = eBorderStyle_none;
mVScrollbar = nsnull;
NS_INIT_REFCNT();
}