summaryrefslogtreecommitdiff
path: root/src/variabledata.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-04 19:11:53 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-04 19:11:53 +0300
commit3a407bb6b73a186eafd99bcec570f88097c4b2e1 (patch)
treeea57a752c348ba0a883294855ad3c62c16e9749d /src/variabledata.h
parent872fc368f7b253f26714fc47323064f270b62b40 (diff)
downloadplus-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.gz
plus-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.bz2
plus-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.xz
plus-3a407bb6b73a186eafd99bcec570f88097c4b2e1.zip
Add const to more classes.
Diffstat (limited to 'src/variabledata.h')
-rw-r--r--src/variabledata.h12
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