uninitialized variables-gui

This commit is contained in:
AzaezelX 2020-05-11 15:03:27 -05:00
parent b9c207765e
commit 9fef1b3cd1
43 changed files with 119 additions and 33 deletions

View file

@ -54,7 +54,8 @@ ConsoleDocClass( GuiDecoyCtrl,
GuiDecoyCtrl::GuiDecoyCtrl() : mMouseOver(false),
mIsDecoy(true),
mDecoyReference(NULL)
mDecoyReference(NULL),
mMouseOverDecoy(false)
{
}
@ -235,4 +236,4 @@ void GuiDecoyCtrl::onMiddleMouseUp(const GuiEvent &)
void GuiDecoyCtrl::onMiddleMouseDragged(const GuiEvent &)
{
}
}

View file

@ -280,6 +280,10 @@ GuiPopUpMenuCtrl::GuiPopUpMenuCtrl(void)
mBitmapName = StringTable->EmptyString(); // Added
mBitmapBounds.set(16, 16); // Added
mIdMax = -1;
mBackground = NULL;
mTl = NULL;
mSc = NULL;
mReplaceText = false;
}
//------------------------------------------------------------------------------

View file

@ -332,6 +332,10 @@ GuiPopUpMenuCtrlEx::GuiPopUpMenuCtrlEx(void)
mBitmapBounds.set(16, 16); // Added
mHotTrackItems = false;
mIdMax = -1;
mBackground = NULL;
mTl = NULL;
mSc = NULL;
mReplaceText = false;
}
//------------------------------------------------------------------------------

View file

@ -100,8 +100,10 @@ GuiSliderCtrl::GuiSliderCtrl()
mMouseOver( false ),
mDepressed( false ),
mMouseDragged( false ),
mHasTexture(false),
mUseFillBar(false),
mFillBarColor(ColorI(255,255,255))
mFillBarColor(ColorI(255,255,255)),
mBitmapBounds(NULL)
{
}

View file

@ -53,6 +53,7 @@ GuiTabPageCtrl::GuiTabPageCtrl(void)
dStrcpy(mText,(UTF8*)"TabPage", MAX_STRING_LENGTH);
mActive = true;
mIsContainer = true;
mTabIndex = -1;
}
void GuiTabPageCtrl::initPersistFields()

View file

@ -95,6 +95,8 @@ GuiTextEditSliderBitmapCtrl::GuiTextEditSliderBitmapCtrl()
mTextAreaHit = None;
mFocusOnMouseWheel = false;
mBitmapName = StringTable->insert( "" );
mMouseDownTime = 0;
mNumberOfBitmaps = 0;
}
GuiTextEditSliderBitmapCtrl::~GuiTextEditSliderBitmapCtrl()
@ -444,4 +446,4 @@ void GuiTextEditSliderBitmapCtrl::setBitmap(const char *name)
if(awake)
onWake();
setUpdate();
}
}

View file

@ -62,6 +62,7 @@ GuiTextEditSliderCtrl::GuiTextEditSliderCtrl()
mFormat = StringTable->insert("%3.2f");
mTextAreaHit = None;
mFocusOnMouseWheel = false;
mMouseDownTime = 0.0f;
}
GuiTextEditSliderCtrl::~GuiTextEditSliderCtrl()