diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-06-30 23:19:40 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-06-30 23:19:40 +0200 |
commit | 3d9af4e9cbb76221766eb3a7f859b60b4c09679a (patch) | |
tree | e909641df54cffa67a2abc79835ebab0d0a4c9be /src | |
parent | 61e3f1110adafa7a5aacc8db745fab7e25e9e695 (diff) | |
download | mana-client-3d9af4e9cbb76221766eb3a7f859b60b4c09679a.tar.gz mana-client-3d9af4e9cbb76221766eb3a7f859b60b4c09679a.tar.bz2 mana-client-3d9af4e9cbb76221766eb3a7f859b60b4c09679a.tar.xz mana-client-3d9af4e9cbb76221766eb3a7f859b60b4c09679a.zip |
Fixed compiler warning about unsigned/signed integer comparision
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/npcdialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/listbox.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index a61df69f..afcc150d 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -172,7 +172,7 @@ void NpcDialog::action(const gcn::ActionEvent &event) int choice = 0; int selectedIndex = mItemList->getSelected(); - if (selectedIndex >= mItems.size()) + if (selectedIndex >= (int) mItems.size()) { return; } diff --git a/src/gui/widgets/listbox.cpp b/src/gui/widgets/listbox.cpp index e9c3f882..49653294 100644 --- a/src/gui/widgets/listbox.cpp +++ b/src/gui/widgets/listbox.cpp @@ -106,11 +106,11 @@ void ListBox::keyPressed(gcn::KeyEvent& keyEvent) // Don't do anything on scrollwheel. ScrollArea will deal with that. -void ListBox::mouseWheelMovedUp(gcn::MouseEvent& mouseEvent) +void ListBox::mouseWheelMovedUp(gcn::MouseEvent &mouseEvent) { } -void ListBox::mouseWheelMovedDown(gcn::MouseEvent& mouseEvent) +void ListBox::mouseWheelMovedDown(gcn::MouseEvent &mouseEvent) { } |