From 9f1994182d4225f630a93ae06b01927c4f7a9a37 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 May 2015 20:33:10 +0300 Subject: Convert ActorType enum into strong typed enum. --- src/listeners/playerlistener.cpp | 2 +- src/listeners/playerlistener.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/listeners') diff --git a/src/listeners/playerlistener.cpp b/src/listeners/playerlistener.cpp index ae0f3aca7..99d06458b 100644 --- a/src/listeners/playerlistener.cpp +++ b/src/listeners/playerlistener.cpp @@ -42,7 +42,7 @@ void PlayerListener::action(const ActionEvent &event) { std::string comment = mDialog->getText(); Being *const being = actorManager->findBeingByName( - mNick, static_cast(mType)); + mNick, static_cast(mType)); if (being) being->setComment(comment); Being::saveComment(mNick, comment, mType); diff --git a/src/listeners/playerlistener.h b/src/listeners/playerlistener.h index 52527fafc..fd503da95 100644 --- a/src/listeners/playerlistener.h +++ b/src/listeners/playerlistener.h @@ -44,13 +44,13 @@ class PlayerListener final : public ActionListener void setDialog(TextDialog *const dialog) { mDialog = dialog; } - void setType(const ActorType::Type type) + void setType(const ActorTypeT type) { mType = type; } private: std::string mNick; TextDialog *mDialog; - ActorType::Type mType; + ActorTypeT mType; }; #endif // LISTENERS_PLAYERLISTENER_H -- cgit v1.2.3-60-g2f50