From 47651342ab6a3364d02bf080aa5274040717e85e Mon Sep 17 00:00:00 2001 From: "sfraser@netscape.com" Date: Tue, 24 Aug 1999 01:00:01 +0000 Subject: [PATCH] Make sure we initialize members of the base widget --- widget/src/xpwidgets/nsBaseWidget.cpp | 32 +++++++++++++++------------ 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/widget/src/xpwidgets/nsBaseWidget.cpp b/widget/src/xpwidgets/nsBaseWidget.cpp index d1f48ffd0dce..8a3a0a12e7d4 100644 --- a/widget/src/xpwidgets/nsBaseWidget.cpp +++ b/widget/src/xpwidgets/nsBaseWidget.cpp @@ -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(); }