From 62ffd2023d9073e452fe2e2f50cf6b2f11224d6f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Aug 2012 22:44:44 +0300 Subject: next code style changes. --- src/gui/charselectdialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/charselectdialog.cpp') diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp index 77c8ea55d..1d82c09d6 100644 --- a/src/gui/charselectdialog.cpp +++ b/src/gui/charselectdialog.cpp @@ -211,7 +211,8 @@ 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 (size_t i = 0, sz = mCharacterEntries.size(); i < sz; ++i) + for (unsigned int i = 0, sz = static_cast( + mCharacterEntries.size()); i < sz; ++i) { if (mCharacterEntries[i] == sourceParent) { @@ -540,7 +541,7 @@ bool CharSelectDialog::selectByName(const std::string &name, if (mCharacterEntries[i]) mCharacterEntries[i]->requestFocus(); if (selAction == Choose) - attemptCharacterSelect(i); + attemptCharacterSelect(static_cast(i)); return true; } } -- cgit v1.2.3-60-g2f50