From 8fdbbe936fc0bb99b0c3d851b7a5b522514ba2b9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 May 2013 15:04:39 +0300 Subject: improve popupmenu class. --- src/gui/popupmenu.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/gui/popupmenu.h') diff --git a/src/gui/popupmenu.h b/src/gui/popupmenu.h index d3682f68e..de52c9c17 100644 --- a/src/gui/popupmenu.h +++ b/src/gui/popupmenu.h @@ -116,7 +116,8 @@ class PopupMenu final : public Popup, public LinkHandler void showPopup(const int x, const int y, std::vector &beings); - void showPlayerPopup(const int x, const int y, std::string nick); + void showPlayerPopup(const int x, const int y, + const std::string &nick); /** * Shows the floor item related popup menu at the specified @@ -149,7 +150,8 @@ class PopupMenu final : public Popup, public LinkHandler void showSpellPopup(const int x, const int y, TextCommand *const cmd); - void showAttackMonsterPopup(int x, int y, std::string name, int type); + void showAttackMonsterPopup(int x, int y, const std::string &name, + int type); void showPickupItemPopup(int x, int y, std::string name); @@ -168,9 +170,9 @@ class PopupMenu final : public Popup, public LinkHandler void showChangePos(const int x, const int y); - void showPopup(const int x, const int y, gcn::ListModel *model); + void showPopup(const int x, const int y, gcn::ListModel *const model); - void showTextFieldPopup(int x, int y, TextField *input); + void showTextFieldPopup(int x, int y, TextField *const input); void showLinkPopup(const int x, const int y, const std::string &link); @@ -185,7 +187,7 @@ class PopupMenu final : public Popup, public LinkHandler void clear(); private: - void addPlayerRelation(std::string name); + void addPlayerRelation(const std::string &name); void addFollow(); -- cgit v1.2.3-70-g09d2