summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
{
}