summaryrefslogtreecommitdiff
path: root/src/being/playerrelations.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-17 18:22:18 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-17 18:22:18 +0300
commitfed37f530d063cbce6a9bba7f1a878c42e10367e (patch)
treebb0e3566e390634becf38b2c8eda22ef25e02016 /src/being/playerrelations.cpp
parent5eeb34b86751fff15a59702ce13a772bd39fd338 (diff)
downloadplus-fed37f530d063cbce6a9bba7f1a878c42e10367e.tar.gz
plus-fed37f530d063cbce6a9bba7f1a878c42e10367e.tar.bz2
plus-fed37f530d063cbce6a9bba7f1a878c42e10367e.tar.xz
plus-fed37f530d063cbce6a9bba7f1a878c42e10367e.zip
Add missing A_DEFAULT_COPY / A_DELETE_COPY into being.
Diffstat (limited to 'src/being/playerrelations.cpp')
-rw-r--r--src/being/playerrelations.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/being/playerrelations.cpp b/src/being/playerrelations.cpp
index 264f5c3a0..c972f25ca 100644
--- a/src/being/playerrelations.cpp
+++ b/src/being/playerrelations.cpp
@@ -59,6 +59,11 @@ namespace
class SortPlayersFunctor final
{
public:
+ SortPlayersFunctor()
+ { }
+
+ A_DEFAULT_COPY(SortPlayersFunctor)
+
bool operator() (const std::string &str1,
const std::string &str2) const
{
@@ -78,6 +83,11 @@ namespace
PlayerRelation *>, std::map<std::string, PlayerRelation *> *>
{
public:
+ PlayerConfSerialiser()
+ { }
+
+ A_DELETE_COPY(PlayerConfSerialiser)
+
ConfigurationObject *writeConfigItem(
const std::pair<std::string, PlayerRelation *> &value,
ConfigurationObject *const cobj) const override final
@@ -468,6 +478,8 @@ class PIS_nothing final : public PlayerIgnoreStrategy
mShortName = PLAYER_IGNORE_STRATEGY_NOP;
}
+ A_DELETE_COPY(PIS_nothing)
+
void ignore(Being *const being A_UNUSED,
const unsigned int flags A_UNUSED) const override final
{
@@ -485,6 +497,8 @@ class PIS_dotdotdot final : public PlayerIgnoreStrategy
mShortName = "dotdotdot";
}
+ A_DELETE_COPY(PIS_dotdotdot)
+
void ignore(Being *const being,
const unsigned int flags A_UNUSED) const override final
{
@@ -508,6 +522,8 @@ class PIS_blinkname final : public PlayerIgnoreStrategy
mShortName = "blinkname";
}
+ A_DELETE_COPY(PIS_blinkname)
+
void ignore(Being *const being,
const unsigned int flags A_UNUSED) const override final
{
@@ -522,7 +538,8 @@ class PIS_blinkname final : public PlayerIgnoreStrategy
class PIS_emote final : public PlayerIgnoreStrategy
{
public:
- PIS_emote(const uint8_t emote_nr, const std::string &description,
+ PIS_emote(const uint8_t emote_nr,
+ const std::string &description,
const std::string &shortname) :
PlayerIgnoreStrategy(),
mEmotion(emote_nr)
@@ -531,6 +548,8 @@ class PIS_emote final : public PlayerIgnoreStrategy
mShortName = shortname;
}
+ A_DELETE_COPY(PIS_emote)
+
void ignore(Being *const being,
const unsigned int flags A_UNUSED) const override final
{