diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-03-19 20:43:10 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-03-19 20:43:10 +0000 |
commit | 654d24e74c56d240b8d622840c135e22a029636d (patch) | |
tree | 5eb8b94f7832bdbb6d21c7ded6e6da6b5f8f3464 /src/gui/char_server.cpp | |
parent | 3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6 (diff) | |
download | mana-654d24e74c56d240b8d622840c135e22a029636d.tar.gz mana-654d24e74c56d240b8d622840c135e22a029636d.tar.bz2 mana-654d24e74c56d240b8d622840c135e22a029636d.tar.xz mana-654d24e74c56d240b8d622840c135e22a029636d.zip |
Unreverted latest change by Doener due to my lack of proper communication abilities.
Diffstat (limited to 'src/gui/char_server.cpp')
-rw-r--r-- | src/gui/char_server.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp index 8a0a67ab..ad0df223 100644 --- a/src/gui/char_server.cpp +++ b/src/gui/char_server.cpp @@ -23,8 +23,6 @@ #include "char_server.h" -#include <sstream> - #include "button.h" #include "listbox.h" #include "scrollarea.h" @@ -35,6 +33,8 @@ #include "../net/network.h" // TODO this is just for iptostring, move that? +#include "../utils/tostring.h" + extern SERVER_INFO **server_info; /** @@ -120,7 +120,6 @@ ServerListModel::getNumberOfElements() std::string ServerListModel::getElementAt(int i) { - std::stringstream s; - s << server_info[i]->name << " (" << server_info[i]->online_users << ")"; - return s.str(); + const SERVER_INFO *si = server_info[i]; + return si->name + " (" + toString(si->online_users) + ")"; } |