diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-09-17 21:34:03 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-09-17 21:34:03 (GMT) |
commit | f3ad09c4ce70cc58871eeac49d640f213f3cd16f (patch) | |
tree | 674a8ea578c411304374d95c3db2ef64d78e0360 /src | |
parent | 87cffef7f5d0bf960e5682fad68bd8186fc36e29 (diff) | |
download | fluxbox_pavel-f3ad09c4ce70cc58871eeac49d640f213f3cd16f.zip fluxbox_pavel-f3ad09c4ce70cc58871eeac49d640f213f3cd16f.tar.bz2 |
missing initializations
'valgrind' reported a lot of code branches based upon uninitialized
variables. some are not identified yet.
Diffstat (limited to 'src')
-rw-r--r-- | src/IconbarTool.cc | 3 | ||||
-rw-r--r-- | src/Screen.cc | 1 | ||||
-rw-r--r-- | src/main.cc | 1 |
3 files changed, 4 insertions, 1 deletions
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, | |||
268 | m_rc_use_pixmap(screen.resourceManager(), true, | 268 | m_rc_use_pixmap(screen.resourceManager(), true, |
269 | screen.name() + ".iconbar.usePixmap", screen.altName() + ".Iconbar.UsePixmap"), | 269 | screen.name() + ".iconbar.usePixmap", screen.altName() + ".Iconbar.UsePixmap"), |
270 | m_menu(screen.menuTheme(), screen.imageControl(), | 270 | m_menu(screen.menuTheme(), screen.imageControl(), |
271 | *screen.layerManager().getLayer(Layer::MENU)) { | 271 | *screen.layerManager().getLayer(Layer::MENU)), |
272 | m_alpha(255) { | ||
272 | 273 | ||
273 | // setup mode menu | 274 | // setup mode menu |
274 | setupModeMenu(m_menu, *this); | 275 | 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, | |||
332 | int scrn, int num_layers) : | 332 | int scrn, int num_layers) : |
333 | m_reconfigure_sig(*this), // reconfigure signal | 333 | m_reconfigure_sig(*this), // reconfigure signal |
334 | m_layermanager(num_layers), | 334 | m_layermanager(num_layers), |
335 | m_image_control(0), | ||
335 | m_focused_windowtheme(new FbWinFrameTheme(scrn, ".focus", ".Focus")), | 336 | m_focused_windowtheme(new FbWinFrameTheme(scrn, ".focus", ".Focus")), |
336 | m_unfocused_windowtheme(new FbWinFrameTheme(scrn, ".unfocus", ".Unfocus")), | 337 | m_unfocused_windowtheme(new FbWinFrameTheme(scrn, ".unfocus", ".Unfocus")), |
337 | // the order of windowtheme and winbutton theme is important | 338 | // 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) { | |||
183 | } | 183 | } |
184 | 184 | ||
185 | struct Options { | 185 | struct Options { |
186 | Options() : xsync(false) { } | ||
186 | std::string session_display; | 187 | std::string session_display; |
187 | std::string rc_file; | 188 | std::string rc_file; |
188 | std::string log_filename; | 189 | std::string log_filename; |