diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-07 19:26:11 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-07 19:26:11 +0200 |
commit | ef1975a3eb4e1986601ad154bf184e0de332870c (patch) | |
tree | 53388463a481577afab64573169f6959d9b8c6d9 /src/gui/charcreatedialog.cpp | |
parent | 8f4d75cadd75e71daf5689a2d289bd2e0deea533 (diff) | |
download | mana-ef1975a3eb4e1986601ad154bf184e0de332870c.tar.gz mana-ef1975a3eb4e1986601ad154bf184e0de332870c.tar.bz2 mana-ef1975a3eb4e1986601ad154bf184e0de332870c.tar.xz mana-ef1975a3eb4e1986601ad154bf184e0de332870c.zip |
Fixed compile warnings about unsigned/signed comparisons
Diffstat (limited to 'src/gui/charcreatedialog.cpp')
-rw-r--r-- | src/gui/charcreatedialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp index aa7f7051..8922c8f6 100644 --- a/src/gui/charcreatedialog.cpp +++ b/src/gui/charcreatedialog.cpp @@ -161,7 +161,7 @@ void CharCreateDialog::action(const gcn::ActionEvent &event) mCreateButton->setEnabled(false); std::vector<int> atts; - for (int i = 0; i < mAttributeSlider.size(); i++) + for (unsigned i = 0; i < mAttributeSlider.size(); i++) { atts.push_back((int) mAttributeSlider[i]->getValue()); } @@ -214,7 +214,7 @@ std::string CharCreateDialog::getName() void CharCreateDialog::updateSliders() { - for (int i = 0; i < mAttributeSlider.size(); i++) + for (unsigned i = 0; i < mAttributeSlider.size(); i++) { // Update captions mAttributeValue[i]->setCaption( @@ -254,7 +254,7 @@ int CharCreateDialog::getDistributedPoints() { int points = 0; - for (int i = 0; i < mAttributeSlider.size(); i++) + for (unsigned i = 0; i < mAttributeSlider.size(); i++) { points += (int) mAttributeSlider[i]->getValue(); } @@ -266,7 +266,7 @@ void CharCreateDialog::setAttributes(std::vector<std::string> labels, { mMaxPoints = available; - for (int i = 0; i < mAttributeLabel.size(); i++) + for (unsigned i = 0; i < mAttributeLabel.size(); i++) { remove(mAttributeLabel[i]); delete mAttributeLabel[i]; @@ -283,7 +283,7 @@ void CharCreateDialog::setAttributes(std::vector<std::string> labels, int w = 200; int h = 330; - for (int i = 0; i < labels.size(); i++) + for (unsigned i = 0; i < labels.size(); i++) { mAttributeLabel[i] = new gcn::Label(labels[i]); mAttributeLabel[i]->setWidth(70); |