From 366e0b120624cb382fd3b233b8ec7a75c31a2da4 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 17 Feb 2009 20:33:28 +0100 Subject: Got rid of const where it does not make much sense It's not that useful to make variables that are passed by value const. In the declaration it is even completely ignored. --- src/gui/itemcontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/itemcontainer.cpp') diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp index 2894ca26..6e73731b 100644 --- a/src/gui/itemcontainer.cpp +++ b/src/gui/itemcontainer.cpp @@ -277,7 +277,7 @@ void ItemContainer::mouseExited(gcn::MouseEvent &event) mItemPopup->setVisible(false); } -int ItemContainer::getSlotIndex(const int posX, const int posY) const +int ItemContainer::getSlotIndex(int posX, int posY) const { int columns = getWidth() / gridWidth; int index = posX / gridWidth + ((posY / gridHeight) * columns) + mOffset; -- cgit v1.2.3-70-g09d2