diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 15:09:27 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 15:09:27 +0000 |
commit | 3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6 (patch) | |
tree | 5084eaa47d4874a3a573de226f19c4be072e4888 /src/gui/char_server.cpp | |
parent | 19d5cc3a6bbbd911361b7e8b956840d0189d4c2b (diff) | |
download | mana-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.tar.gz mana-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.tar.bz2 mana-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.tar.xz mana-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.zip |
Reverted changeset r2269 (toString) as requested by ElvenProgrammer.
Diffstat (limited to 'src/gui/char_server.cpp')
-rw-r--r-- | src/gui/char_server.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp index ad0df223..8a0a67ab 100644 --- a/src/gui/char_server.cpp +++ b/src/gui/char_server.cpp @@ -23,6 +23,8 @@ #include "char_server.h" +#include <sstream> + #include "button.h" #include "listbox.h" #include "scrollarea.h" @@ -33,8 +35,6 @@ #include "../net/network.h" // TODO this is just for iptostring, move that? -#include "../utils/tostring.h" - extern SERVER_INFO **server_info; /** @@ -120,6 +120,7 @@ ServerListModel::getNumberOfElements() std::string ServerListModel::getElementAt(int i) { - const SERVER_INFO *si = server_info[i]; - return si->name + " (" + toString(si->online_users) + ")"; + std::stringstream s; + s << server_info[i]->name << " (" << server_info[i]->online_users << ")"; + return s.str(); } |