summaryrefslogtreecommitdiff
path: root/src/gui/setup_players.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/setup_players.cpp')
-rw-r--r--src/gui/setup_players.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/setup_players.cpp b/src/gui/setup_players.cpp
index a3b0ef53..6a77e229 100644
--- a/src/gui/setup_players.cpp
+++ b/src/gui/setup_players.cpp
@@ -135,9 +135,8 @@ public:
mPlayers = player_relations.getPlayers();
// set up widgets
- for (unsigned int r = 0; r < mPlayers->size(); ++r)
+ for (const auto &name : *mPlayers)
{
- std::string name = (*mPlayers)[r];
gcn::Widget *widget = new Label(name);
mWidgets.push_back(widget);