diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-04 19:11:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-04 19:11:53 +0300 |
commit | 3a407bb6b73a186eafd99bcec570f88097c4b2e1 (patch) | |
tree | ea57a752c348ba0a883294855ad3c62c16e9749d /src/variabledata.h | |
parent | 872fc368f7b253f26714fc47323064f270b62b40 (diff) | |
download | ManaVerse-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.gz ManaVerse-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.bz2 ManaVerse-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.xz ManaVerse-3a407bb6b73a186eafd99bcec570f88097c4b2e1.zip |
Add const to more classes.
Diffstat (limited to 'src/variabledata.h')
-rw-r--r-- | src/variabledata.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/variabledata.h b/src/variabledata.h index 71c0e8afb..3bb3b7705 100644 --- a/src/variabledata.h +++ b/src/variabledata.h @@ -45,7 +45,8 @@ class VariableData class IntData : public VariableData { public: - IntData(int value) : mData(value) + IntData(const int value) : + mData(value) { } int getData() const @@ -61,7 +62,8 @@ class IntData : public VariableData class StringData : public VariableData { public: - StringData(const std::string &value) : mData(value) + StringData(const std::string &value) : + mData(value) { } const std::string &getData() const @@ -77,7 +79,8 @@ class StringData : public VariableData class FloatData : public VariableData { public: - FloatData(double value) : mData(value) + FloatData(const double value) : + mData(value) { } double getData() const @@ -93,7 +96,8 @@ class FloatData : public VariableData class BoolData : public VariableData { public: - BoolData(bool value) : mData(value) + BoolData(const bool value) : + mData(value) { } bool getData() const |