summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp8
-rw-r--r--src/gui/popups/popupmenu.h10
2 files changed, 12 insertions, 6 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;
diff --git a/src/gui/popups/popupmenu.h b/src/gui/popups/popupmenu.h
index ca6d58ee6..dfcb64513 100644
--- a/src/gui/popups/popupmenu.h
+++ b/src/gui/popups/popupmenu.h
@@ -108,13 +108,17 @@ class PopupMenu final : public Popup, public LinkHandler
void showPopup(const int x, const int y, MapItem *const mapItem);
- void showItemPopup(const int x, const int y, Item *const item);
+ void showItemPopup(const int x,
+ const int y,
+ const Item *const item);
void showItemPopup(const int x, const int y,
const int itemId,
const ItemColor color);
- void showDropPopup(const int x, const int y, Item *const item);
+ void showDropPopup(const int x,
+ const int y,
+ const Item *const item);
void showOutfitsWindowPopup(const int x, const int y);
@@ -204,7 +208,7 @@ class PopupMenu final : public Popup, public LinkHandler
void addNormalRelations();
- void addWindowMenu(Window *const window);
+ void addWindowMenu(const Window *const window);
#ifdef EATHENA_SUPPORT
void addChat(const Being *const being);