From fed37f530d063cbce6a9bba7f1a878c42e10367e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Jan 2017 18:22:18 +0300 Subject: Add missing A_DEFAULT_COPY / A_DELETE_COPY into being. --- src/being/actorsprite.cpp | 2 ++ src/being/being.h | 2 ++ src/being/playerinfo.h | 4 ++++ src/being/playerrelations.cpp | 21 ++++++++++++++++++++- 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp index 575744d77..0cbb88d99 100644 --- a/src/being/actorsprite.cpp +++ b/src/being/actorsprite.cpp @@ -193,6 +193,8 @@ void ActorSprite::setTargetType(const TargetCursorTypeT type) struct EffectDescription final { + A_DELETE_COPY(EffectDescription) + std::string mGFXEffect; std::string mSFXEffect; }; diff --git a/src/being/being.h b/src/being/being.h index 2fb8a4b51..9477abab5 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -78,6 +78,8 @@ struct NextSoundInfo final { } + A_DELETE_COPY(NextSoundInfo) + const SoundInfo *sound; int x; int y; diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h index 5b512eb05..0372bafc4 100644 --- a/src/being/playerinfo.h +++ b/src/being/playerinfo.h @@ -44,6 +44,8 @@ */ struct Stat final { + A_DEFAULT_COPY(Stat) + int base; int mod; int exp; @@ -65,6 +67,8 @@ struct PlayerInfoBackend final { } + A_DEFAULT_COPY(PlayerInfoBackend) + AtrIntMap mAttributes; StatMap mStats; IntMap mSkills; 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 *> { public: + PlayerConfSerialiser() + { } + + A_DELETE_COPY(PlayerConfSerialiser) + ConfigurationObject *writeConfigItem( const std::pair &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 { -- cgit v1.2.3-70-g09d2