summaryrefslogtreecommitdiff
path: root/src/playerrelations.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-08 00:17:45 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-08 00:17:45 +0300
commit593cccb16074fe9269dd2f278bd79859769eb1fd (patch)
treed8b3d93001021c59622ea88140dbbef8aee05013 /src/playerrelations.cpp
parentb7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2 (diff)
downloadmv-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.gz
mv-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.bz2
mv-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.xz
mv-593cccb16074fe9269dd2f278bd79859769eb1fd.zip
Improve constructors in some classes.
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r--src/playerrelations.cpp10
1 files changed, 7 insertions, 3 deletions
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;