From 71f88c02f79a1164430eec1de3e15edec011a15e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Sep 2013 18:35:21 +0300 Subject: improve construcors in abstract classes. Also add some missing final to classes. --- src/being/playerrelations.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/being/playerrelations.h') diff --git a/src/being/playerrelations.h b/src/being/playerrelations.h index 5d11b5b25..c24363fcf 100644 --- a/src/being/playerrelations.h +++ b/src/being/playerrelations.h @@ -79,12 +79,6 @@ class PlayerIgnoreStrategy std::string mDescription; std::string mShortName; - PlayerIgnoreStrategy() : - mDescription(), - mShortName() - { - } - A_DELETE_COPY(PlayerIgnoreStrategy) virtual ~PlayerIgnoreStrategy() @@ -95,13 +89,17 @@ class PlayerIgnoreStrategy */ virtual void ignore(Being *const being, const unsigned int flags) const = 0; + protected: + PlayerIgnoreStrategy() : + mDescription(), + mShortName() + { + } }; class PlayerRelationsListener { public: - PlayerRelationsListener() - { } virtual ~PlayerRelationsListener() { } @@ -109,6 +107,10 @@ class PlayerRelationsListener virtual void updatedPlayer(const std::string &name) = 0; virtual void updateAll() = 0; + + protected: + PlayerRelationsListener() + { } }; /** -- cgit v1.2.3-60-g2f50