diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-22 01:34:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-22 01:34:49 +0300 |
commit | 3dcf21babe03cee5080a25e787e1d7e72124288e (patch) | |
tree | 7051c6beddd3e7e1de960bb84e46601db8e2e5c4 /src/variabledata.h | |
parent | c217b7141df580b686a0eef085bd0eb0a8e6771a (diff) | |
download | plus-3dcf21babe03cee5080a25e787e1d7e72124288e.tar.gz plus-3dcf21babe03cee5080a25e787e1d7e72124288e.tar.bz2 plus-3dcf21babe03cee5080a25e787e1d7e72124288e.tar.xz plus-3dcf21babe03cee5080a25e787e1d7e72124288e.zip |
Add final keyword to most classes.
Diffstat (limited to 'src/variabledata.h')
-rw-r--r-- | src/variabledata.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/variabledata.h b/src/variabledata.h index 3bb3b7705..90279d28e 100644 --- a/src/variabledata.h +++ b/src/variabledata.h @@ -24,6 +24,8 @@ #include <string> +#include "localconsts.h" + class VariableData { public: @@ -42,7 +44,7 @@ class VariableData virtual int getType() const = 0; }; -class IntData : public VariableData +class IntData final : public VariableData { public: IntData(const int value) : @@ -59,7 +61,7 @@ class IntData : public VariableData int mData; }; -class StringData : public VariableData +class StringData final : public VariableData { public: StringData(const std::string &value) : @@ -76,7 +78,7 @@ class StringData : public VariableData std::string mData; }; -class FloatData : public VariableData +class FloatData final : public VariableData { public: FloatData(const double value) : @@ -93,7 +95,7 @@ class FloatData : public VariableData double mData; }; -class BoolData : public VariableData +class BoolData final : public VariableData { public: BoolData(const bool value) : |