diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-21 22:44:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-21 23:18:20 +0300 |
commit | 62ffd2023d9073e452fe2e2f50cf6b2f11224d6f (patch) | |
tree | 8c45c7c16b0c20ac6a7b722d69c148149e6b651f /src/gui/charselectdialog.cpp | |
parent | cfa5391c1be51ef49380e398a72c813255d6316e (diff) | |
download | manaverse-62ffd2023d9073e452fe2e2f50cf6b2f11224d6f.tar.gz manaverse-62ffd2023d9073e452fe2e2f50cf6b2f11224d6f.tar.bz2 manaverse-62ffd2023d9073e452fe2e2f50cf6b2f11224d6f.tar.xz manaverse-62ffd2023d9073e452fe2e2f50cf6b2f11224d6f.zip |
next code style changes.
Diffstat (limited to 'src/gui/charselectdialog.cpp')
-rw-r--r-- | src/gui/charselectdialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<unsigned int>( + 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<int>(i)); return true; } } |