From 593cccb16074fe9269dd2f278bd79859769eb1fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 8 Sep 2012 00:17:45 +0300 Subject: Improve constructors in some classes. --- src/playerrelations.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/playerrelations.cpp') diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp index a18d82aaa..549c3ca2d 100644 --- a/src/playerrelations.cpp +++ b/src/playerrelations.cpp @@ -467,7 +467,8 @@ bool PlayerRelationsManager::checkBadRelation(std::string name) class PIS_nothing : public PlayerIgnoreStrategy { public: - PIS_nothing() + PIS_nothing() : + PlayerIgnoreStrategy() { mDescription = _("Completely ignore"); mShortName = PLAYER_IGNORE_STRATEGY_NOP; @@ -482,7 +483,8 @@ public: class PIS_dotdotdot : public PlayerIgnoreStrategy { public: - PIS_dotdotdot() + PIS_dotdotdot() : + PlayerIgnoreStrategy() { mDescription = _("Print '...'"); mShortName = "dotdotdot"; @@ -502,7 +504,8 @@ public: class PIS_blinkname : public PlayerIgnoreStrategy { public: - PIS_blinkname() + PIS_blinkname() : + PlayerIgnoreStrategy() { mDescription = _("Blink name"); mShortName = "blinkname"; @@ -523,6 +526,7 @@ class PIS_emote : public PlayerIgnoreStrategy public: PIS_emote(const uint8_t emote_nr, const std::string &description, const std::string &shortname) : + PlayerIgnoreStrategy(), mEmotion(emote_nr) { mDescription = description; -- cgit v1.2.3-60-g2f50