summaryrefslogtreecommitdiff
path: root/src/listeners/requesttradelistener.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-21 01:13:48 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-21 01:13:48 +0300
commit6c01b391c288622d8e360d823c9c1e35a874fa58 (patch)
tree68dc29cbdfd55770a625aaf16939f243a7289d57 /src/listeners/requesttradelistener.h
parent414b9fbcd9bf6f49ba98d84babfac143aa9e6532 (diff)
downloadmanaplus-6c01b391c288622d8e360d823c9c1e35a874fa58.tar.gz
manaplus-6c01b391c288622d8e360d823c9c1e35a874fa58.tar.bz2
manaplus-6c01b391c288622d8e360d823c9c1e35a874fa58.tar.xz
manaplus-6c01b391c288622d8e360d823c9c1e35a874fa58.zip
Add missing public modifier to some structs.
Diffstat (limited to 'src/listeners/requesttradelistener.h')
-rw-r--r--src/listeners/requesttradelistener.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/listeners/requesttradelistener.h b/src/listeners/requesttradelistener.h
index 6e94b96fa..576e22cfb 100644
--- a/src/listeners/requesttradelistener.h
+++ b/src/listeners/requesttradelistener.h
@@ -39,14 +39,15 @@ extern ConfirmDialog *confirmDlg;
*/
struct RequestTradeListener final : public ActionListener
{
- void action(const ActionEvent &event) override final
- {
- confirmDlg = nullptr;
- const std::string &eventId = event.getId();
- if (eventId == "ignore")
- player_relations.ignoreTrade(tradePartnerName);
- tradeHandler->respond(eventId == "yes");
- }
+ public:
+ void action(const ActionEvent &event) override final
+ {
+ confirmDlg = nullptr;
+ const std::string &eventId = event.getId();
+ if (eventId == "ignore")
+ player_relations.ignoreTrade(tradePartnerName);
+ tradeHandler->respond(eventId == "yes");
+ }
};
#endif // LISTENERS_REQUESTTRADELISTENER_H