summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-06-30 23:19:40 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-06-30 23:19:40 +0200
commit3d9af4e9cbb76221766eb3a7f859b60b4c09679a (patch)
treee909641df54cffa67a2abc79835ebab0d0a4c9be /src
parent61e3f1110adafa7a5aacc8db745fab7e25e9e695 (diff)
downloadmana-3d9af4e9cbb76221766eb3a7f859b60b4c09679a.tar.gz
mana-3d9af4e9cbb76221766eb3a7f859b60b4c09679a.tar.bz2
mana-3d9af4e9cbb76221766eb3a7f859b60b4c09679a.tar.xz
mana-3d9af4e9cbb76221766eb3a7f859b60b4c09679a.zip
Fixed compiler warning about unsigned/signed integer comparision
Diffstat (limited to 'src')
-rw-r--r--src/gui/npcdialog.cpp2
-rw-r--r--src/gui/widgets/listbox.cpp4
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)
{
}