summaryrefslogtreecommitdiff
path: root/src/gui/windows/whoisonline.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-18 12:18:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-18 14:52:11 +0300
commitbb9ed14fc1bf7dc20f1e951e67bb359c273033a3 (patch)
treec46e7e5708d3a2058233a41a08995e6c861703ea /src/gui/windows/whoisonline.cpp
parent10273bc94e90fefcfe3fc215aaaaafe7e0e96bd4 (diff)
downloadplus-bb9ed14fc1bf7dc20f1e951e67bb359c273033a3.tar.gz
plus-bb9ed14fc1bf7dc20f1e951e67bb359c273033a3.tar.bz2
plus-bb9ed14fc1bf7dc20f1e951e67bb359c273033a3.tar.xz
plus-bb9ed14fc1bf7dc20f1e951e67bb359c273033a3.zip
fix code style.
Diffstat (limited to 'src/gui/windows/whoisonline.cpp')
-rw-r--r--src/gui/windows/whoisonline.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp
index 7ae87c470..797ba68fe 100644
--- a/src/gui/windows/whoisonline.cpp
+++ b/src/gui/windows/whoisonline.cpp
@@ -22,6 +22,9 @@
#include "gui/windows/whoisonline.h"
+#include "actormanager.h"
+#include "client.h"
+#include "configuration.h"
#include "guild.h"
#include "party.h"
@@ -35,11 +38,6 @@
#include "gui/widgets/browserbox.h"
#include "gui/widgets/scrollarea.h"
-#include "actormanager.h"
-#include "client.h"
-#include "configuration.h"
-#include "main.h"
-
#include "being/beingflag.h"
#include "being/localplayer.h"
#include "being/playerrelations.h"
@@ -440,7 +438,7 @@ void WhoIsOnline::loadWebList()
OnlinePlayer *const player = new OnlinePlayer(nick,
static_cast<unsigned char>(255), level,
- GENDER_UNSPECIFIED, -1);
+ Gender::UNSPECIFIED, -1);
mOnlinePlayers.insert(player);
mOnlineNicks.insert(nick);
@@ -829,9 +827,9 @@ void OnlinePlayer::setText(std::string color)
if (mLevel > 0)
mText.append(strprintf("%d", mLevel));
- if (mGender == GENDER_FEMALE)
+ if (mGender == Gender::FEMALE)
mText.append("\u2640");
- else if (mGender == GENDER_MALE)
+ else if (mGender == Gender::MALE)
mText.append("\u2642");
if (mStatus > 0 && mStatus != 255)