diff options
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; } |