From 07e988baf55b0e0f4b736e9305604536dbc872ff Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 4 Apr 2011 01:57:02 +0300 Subject: Add initialisation for some variables, fix compilation warning. --- src/being.h | 2 +- src/gui/popupmenu.cpp | 5 +++++ src/gui/popupmenu.h | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/being.h b/src/being.h index 1faec9560..f55b05f5f 100644 --- a/src/being.h +++ b/src/being.h @@ -89,7 +89,7 @@ class Being : public ActorSprite, public ConfigListener SIT, DEAD, HURT, - SPAWN, + SPAWN }; enum Speech diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 7493c3745..0ab0ac4a3 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -1471,6 +1471,11 @@ void PopupMenu::showPopup(int x, int y) requestMoveToTop(); } +RenameListener::RenameListener() : + mMapItem(0), + mDialog(0) +{ +} void RenameListener::action(const gcn::ActionEvent &event) { diff --git a/src/gui/popupmenu.h b/src/gui/popupmenu.h index 5250fa093..6dca1ff64 100644 --- a/src/gui/popupmenu.h +++ b/src/gui/popupmenu.h @@ -50,6 +50,8 @@ class Window; class RenameListener : public gcn::ActionListener { public: + RenameListener(); + void action(const gcn::ActionEvent &event); void setMapItem(MapItem* mapItem) -- cgit v1.2.3-70-g09d2