summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-08 22:44:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-08 22:44:39 +0300
commita61ac4664d55cddb18d2d861e76629bd07676129 (patch)
tree59f5ba3ff7e65bbe94651db9ad2cf68b847d8f96 /src/gui/popups/popupmenu.cpp
parentbb3a85b045a6135f7228023a7ba55fb1c9e6bd90 (diff)
downloadmanaverse-a61ac4664d55cddb18d2d861e76629bd07676129.tar.gz
manaverse-a61ac4664d55cddb18d2d861e76629bd07676129.tar.bz2
manaverse-a61ac4664d55cddb18d2d861e76629bd07676129.tar.xz
manaverse-a61ac4664d55cddb18d2d861e76629bd07676129.zip
Add some missing const.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index b9fc252b8..a7c493b8e 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -989,7 +989,7 @@ void PopupMenu::showWindowPopup(Window *const window)
showPopup(mX, mY);
}
-void PopupMenu::addWindowMenu(Window *const window)
+void PopupMenu::addWindowMenu(const Window *const window)
{
if (!window)
return;
@@ -1756,7 +1756,7 @@ void PopupMenu::showItemPopup(const int x, const int y,
}
void PopupMenu::showItemPopup(const int x, const int y,
- Item *const item)
+ const Item *const item)
{
mX = x;
mY = y;
@@ -1810,7 +1810,9 @@ void PopupMenu::showItemPopup(const int x, const int y,
showPopup(x, y);
}
-void PopupMenu::showDropPopup(const int x, const int y, Item *const item)
+void PopupMenu::showDropPopup(const int x,
+ const int y,
+ const Item *const item)
{
mX = x;
mY = y;