missing initializations

'valgrind' reported a lot of code branches based upon uninitialized
variables. some are not identified yet.
This commit is contained in:
Mathias Gumz 2010-09-17 23:34:03 +02:00
parent 87cffef7f5
commit f3ad09c4ce
3 changed files with 4 additions and 1 deletions

View file

@ -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);

View file

@ -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

View file

@ -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;