Fixed two uninitialized reads on startup ({m_,}isShown)

svn path=/trunk/KDE/kdebase/workspace/; revision=1022869
This commit is contained in:
Andreas Kling 2009-09-13 12:15:04 +00:00
parent 76f17e6de1
commit c4b279eed5
2 changed files with 2 additions and 0 deletions

View file

@ -220,6 +220,7 @@ TabBox::TabBox( Workspace *ws )
, wspace(ws)
, display_refcount( 0 )
{
m_isShown = false;
m_defaultConfig = TabBoxConfig();
m_defaultConfig.setTabBoxMode( TabBoxConfig::ClientTabBox );
m_defaultConfig.setClientListMode( TabBoxConfig::CurrentDesktopClientList );

View file

@ -91,6 +91,7 @@ class TabBoxHandlerPrivate
TabBoxHandlerPrivate::TabBoxHandlerPrivate()
{
isShown = false;
config = TabBoxConfig();
view = new TabBoxView();
XSetWindowAttributes attr;