diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 12:56:02 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 12:56:02 +0000 |
commit | 8a9e607d36b9b22cfb22002a3bbeb1bf86810337 (patch) | |
tree | 032f20fff6f1371548d279c7cfad8e550ca75128 /src/main.cpp | |
parent | 76185faa619fd06576f2e67e1f2d5f1fb659e340 (diff) | |
download | mana-8a9e607d36b9b22cfb22002a3bbeb1bf86810337.tar.gz mana-8a9e607d36b9b22cfb22002a3bbeb1bf86810337.tar.bz2 mana-8a9e607d36b9b22cfb22002a3bbeb1bf86810337.tar.xz mana-8a9e607d36b9b22cfb22002a3bbeb1bf86810337.zip |
Made all local action listeners structs and moved them into anonymous namespaces.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/main.cpp b/src/main.cpp index eba01d0f..ee0dad1b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -113,16 +113,12 @@ Uint32 nextFrame(Uint32 interval, void *param) return interval; } -struct ErrorListener : public gcn::ActionListener -{ - void action(const std::string& eventId) +namespace { + struct ErrorListener : public gcn::ActionListener { - if (eventId == "ok") - { - state = LOGIN_STATE; - } - } -} errorListener; + void action(const std::string& eventId) { state = LOGIN_STATE; } + } errorListener; +} /** * Do all initialization stuff |