From f3ad09c4ce70cc58871eeac49d640f213f3cd16f Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Fri, 17 Sep 2010 23:34:03 +0200 Subject: missing initializations 'valgrind' reported a lot of code branches based upon uninitialized variables. some are not identified yet. --- src/IconbarTool.cc | 3 ++- src/Screen.cc | 1 + src/main.cc | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc index cd47d45..503e04b 100644 --- a/src/IconbarTool.cc +++ b/src/IconbarTool.cc @@ -268,7 +268,8 @@ IconbarTool::IconbarTool(const FbTk::FbWindow &parent, IconbarTheme &theme, m_rc_use_pixmap(screen.resourceManager(), true, screen.name() + ".iconbar.usePixmap", screen.altName() + ".Iconbar.UsePixmap"), m_menu(screen.menuTheme(), screen.imageControl(), - *screen.layerManager().getLayer(Layer::MENU)) { + *screen.layerManager().getLayer(Layer::MENU)), + m_alpha(255) { // setup mode menu setupModeMenu(m_menu, *this); diff --git a/src/Screen.cc b/src/Screen.cc index 0677a14..97596d8 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -332,6 +332,7 @@ BScreen::BScreen(FbTk::ResourceManager &rm, int scrn, int num_layers) : m_reconfigure_sig(*this), // reconfigure signal m_layermanager(num_layers), + m_image_control(0), m_focused_windowtheme(new FbWinFrameTheme(scrn, ".focus", ".Focus")), m_unfocused_windowtheme(new FbWinFrameTheme(scrn, ".unfocus", ".Unfocus")), // the order of windowtheme and winbutton theme is important diff --git a/src/main.cc b/src/main.cc index dc42b27..300826e 100644 --- a/src/main.cc +++ b/src/main.cc @@ -183,6 +183,7 @@ static void showInfo(ostream &ostr) { } struct Options { + Options() : xsync(false) { } std::string session_display; std::string rc_file; std::string log_filename; -- cgit v0.11.2