diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-17 18:22:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-17 18:22:25 +0300 |
commit | 533172dc2df60406e2c7f08f36de3742721f8079 (patch) | |
tree | 3cdd02c2876a8eaeb8d852384e6214ecac13739c /src/variabledata.h | |
parent | fed37f530d063cbce6a9bba7f1a878c42e10367e (diff) | |
download | manaverse-533172dc2df60406e2c7f08f36de3742721f8079.tar.gz manaverse-533172dc2df60406e2c7f08f36de3742721f8079.tar.bz2 manaverse-533172dc2df60406e2c7f08f36de3742721f8079.tar.xz manaverse-533172dc2df60406e2c7f08f36de3742721f8079.zip |
Add missing A_DEFAULT_COPY / A_DELETE_COPY into other files.
Diffstat (limited to 'src/variabledata.h')
-rw-r--r-- | src/variabledata.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/variabledata.h b/src/variabledata.h index 05363c646..89b166482 100644 --- a/src/variabledata.h +++ b/src/variabledata.h @@ -38,6 +38,11 @@ class VariableData notfinal DATA_BOOL }; + VariableData() + { } + + A_DELETE_COPY(VariableData) + virtual ~VariableData() {} @@ -48,9 +53,12 @@ class IntData final : public VariableData { public: explicit IntData(const int value) : + VariableData(), mData(value) { } + A_DELETE_COPY(IntData) + int getData() const noexcept2 A_WARN_UNUSED { return mData; } @@ -65,9 +73,12 @@ class StringData final : public VariableData { public: explicit StringData(const std::string &value) : + VariableData(), mData(value) { } + A_DELETE_COPY(StringData) + const std::string &getData() const noexcept2 A_WARN_UNUSED { return mData; } @@ -82,9 +93,12 @@ class FloatData final : public VariableData { public: explicit FloatData(const double value) : + VariableData(), mData(value) { } + A_DELETE_COPY(FloatData) + double getData() const noexcept2 A_WARN_UNUSED { return mData; } @@ -99,9 +113,12 @@ class BoolData final : public VariableData { public: explicit BoolData(const bool value) : + VariableData(), mData(value) { } + A_DELETE_COPY(BoolData) + bool getData() const noexcept2 A_WARN_UNUSED { return mData; } |