summaryrefslogtreecommitdiff
path: root/src/gui/widgets/avatarlistbox.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/widgets/avatarlistbox.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/widgets/avatarlistbox.cpp')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index b5d3c3593..e098cda34 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -113,7 +113,7 @@ void AvatarListBox::draw(Graphics *graphics)
Font *const font = getFont();
const int fontHeight = getFont()->getHeight();
- const std::string name = player_node->getName();
+ const std::string &name = player_node->getName();
// Draw the list elements
graphics->setColorAll(mForegroundColor, mForegroundColor2);
@@ -242,15 +242,15 @@ void AvatarListBox::draw(Graphics *graphics)
{
switch (a->getGender())
{
- case GENDER_FEMALE:
+ case Gender::FEMALE:
text.append(" \u2640 ");
break;
- case GENDER_MALE:
+ case Gender::MALE:
text.append(" \u2642 ");
break;
default:
- case GENDER_UNSPECIFIED:
- case GENDER_OTHER:
+ case Gender::UNSPECIFIED:
+ case Gender::OTHER:
break;
}
}
@@ -261,17 +261,17 @@ void AvatarListBox::draw(Graphics *graphics)
{
switch (a->getGender())
{
- case GENDER_FEMALE:
+ case Gender::FEMALE:
text.append(strprintf(" \u2640 %s",
a->getAdditionString().c_str()));
break;
- case GENDER_MALE:
+ case Gender::MALE:
text.append(strprintf(" \u2642 %s",
a->getAdditionString().c_str()));
break;
default:
- case GENDER_UNSPECIFIED:
- case GENDER_OTHER:
+ case Gender::UNSPECIFIED:
+ case Gender::OTHER:
break;
}
}