summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/charselectdialog.cpp')
-rw-r--r--src/gui/charselectdialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp
index e0ae9e85f..77c8ea55d 100644
--- a/src/gui/charselectdialog.cpp
+++ b/src/gui/charselectdialog.cpp
@@ -211,7 +211,7 @@ void CharSelectDialog::action(const gcn::ActionEvent &event)
// Check if a button of a character was pressed
const gcn::Widget *sourceParent = event.getSource()->getParent();
int selected = -1;
- for (int i = 0; i < static_cast<int>(mCharacterEntries.size()); ++i)
+ for (size_t i = 0, sz = mCharacterEntries.size(); i < sz; ++i)
{
if (mCharacterEntries[i] == sourceParent)
{
@@ -515,7 +515,7 @@ void CharSelectDialog::setLocked(bool locked)
if (mChangeEmailButton)
mChangeEmailButton->setEnabled(!locked);
- for (int i = 0; i < static_cast<int>(mCharacterEntries.size()); ++i)
+ for (size_t i = 0, sz = mCharacterEntries.size(); i < sz; ++i)
{
if (mCharacterEntries[i])
mCharacterEntries[i]->setActive(!mLocked);
@@ -528,7 +528,7 @@ bool CharSelectDialog::selectByName(const std::string &name,
if (mLocked)
return false;
- for (int i = 0; i < static_cast<int>(mCharacterEntries.size()); ++i)
+ for (size_t i = 0, sz = mCharacterEntries.size(); i < sz; ++i)
{
if (mCharacterEntries[i])
{