diff --git a/gnome-quod/src/boardpanel.cc b/gnome-quod/src/boardpanel.cc index 2289d9a..fa8c3c3 100644 --- a/gnome-quod/src/boardpanel.cc +++ b/gnome-quod/src/boardpanel.cc @@ -256,6 +256,8 @@ bool BoardPanel::on_expose_event (GdkEventExpose* event) return true; } + + return false; } void BoardPanel::on_size_allocate (Gtk::Allocation& allocation) diff --git a/gnome-quod/src/mainwindow.cc b/gnome-quod/src/mainwindow.cc index 56a3d9e..e2be161 100644 --- a/gnome-quod/src/mainwindow.cc +++ b/gnome-quod/src/mainwindow.cc @@ -368,7 +368,7 @@ Gtk::Widget* MainWindow::BuildMenu () return pWidgetMenuBar; } -Gtk::Menu* MainWindow::BuildBgSubmenu () +void MainWindow::BuildBgSubmenu () { // Create actions for menus and toolbars: m_refActionBgGroup = Gtk::ActionGroup::create ("UIBackground"); diff --git a/gnome-quod/src/mainwindow.h b/gnome-quod/src/mainwindow.h index 8e3072a..91a6b36 100644 --- a/gnome-quod/src/mainwindow.h +++ b/gnome-quod/src/mainwindow.h @@ -89,7 +89,7 @@ private: Glib::RefPtr m_refPanelToggle; Gtk::Widget* BuildMenu (); - Gtk::Menu* BuildBgSubmenu (); + void BuildBgSubmenu (); virtual void on_menu_game_new (); virtual void on_menu_game_stat (); virtual void on_menu_game_quit (); diff --git a/gnome-quod/src/playerpanel.cc b/gnome-quod/src/playerpanel.cc index e293834..c8a64e7 100644 --- a/gnome-quod/src/playerpanel.cc +++ b/gnome-quod/src/playerpanel.cc @@ -113,5 +113,7 @@ bool PlayerPanel::on_expose_event (GdkEventExpose* event) return true; } + + return false; } diff --git a/gnome-quod/src/statistics.cc b/gnome-quod/src/statistics.cc index a7ad57a..f6d2180 100644 --- a/gnome-quod/src/statistics.cc +++ b/gnome-quod/src/statistics.cc @@ -39,12 +39,16 @@ TPlayerStat::TPlayerStat (const TPlayerStat& o) TPlayerStat& TPlayerStat::operator = (const TPlayerStat& o) { + if (&o == this) return *this; + human_human = o.human_human; human_easy = o.human_easy; human_hard = o.human_hard; easy_easy = o.easy_easy; easy_hard = o.easy_hard; hard_hard = o.hard_hard; + + return *this; } TPlayerStat::~TPlayerStat () { } @@ -61,10 +65,14 @@ TStatistics::TStatistics (const TStatistics& o) TStatistics& TStatistics::operator = (const TStatistics& o) { + if (&o == this) return *this; + blue_blue = o.blue_blue; blue_red = o.blue_red; red_blue = o.red_blue; red_red = o.red_red; + + return *this; } const Glib::ustring TStatistics::FILENAME_STATISTICS = "statistics.xml";