diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-17 22:43:33 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-17 22:44:47 +0200 |
commit | 7b2b5dabb44ce1448f3af99fcba96eefe6d9147d (patch) | |
tree | cdc6404c5978d79cc7b91c5f41c64a6be8b81907 /src/gui | |
parent | 0b18320693dd428e01ab9810d3bb4e18858c43d2 (diff) | |
download | mana-7b2b5dabb44ce1448f3af99fcba96eefe6d9147d.tar.gz mana-7b2b5dabb44ce1448f3af99fcba96eefe6d9147d.tar.bz2 mana-7b2b5dabb44ce1448f3af99fcba96eefe6d9147d.tar.xz mana-7b2b5dabb44ce1448f3af99fcba96eefe6d9147d.zip |
Make the state variable a bit more type-safe
Should be no change in behaviour.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/serverselectdialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/serverselectdialog.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/serverselectdialog.cpp b/src/gui/serverselectdialog.cpp index ccdf2bb6..f492ebc7 100644 --- a/src/gui/serverselectdialog.cpp +++ b/src/gui/serverselectdialog.cpp @@ -55,7 +55,7 @@ class ServerListModel : public gcn::ListModel } }; -ServerSelectDialog::ServerSelectDialog(LoginData *loginData, int nextState): +ServerSelectDialog::ServerSelectDialog(LoginData *loginData, State nextState): Window(_("Select Server")), mLoginData(loginData), mNextState(nextState) diff --git a/src/gui/serverselectdialog.h b/src/gui/serverselectdialog.h index b80ad286..fd1484af 100644 --- a/src/gui/serverselectdialog.h +++ b/src/gui/serverselectdialog.h @@ -24,6 +24,8 @@ #include "gui/widgets/window.h" +#include "main.h" + #include <guichan/actionlistener.hpp> #include <guichan/listmodel.hpp> @@ -42,7 +44,7 @@ class ServerSelectDialog : public Window, public gcn::ActionListener { * * @see Window::Window */ - ServerSelectDialog(LoginData *loginData, int nextState); + ServerSelectDialog(LoginData *loginData, State nextState); /** * Destructor. @@ -59,7 +61,7 @@ class ServerSelectDialog : public Window, public gcn::ActionListener { ServerListModel *mServerListModel; gcn::ListBox *mServerList; gcn::Button *mOkButton; - int mNextState; + State mNextState; }; #endif |