summaryrefslogtreecommitdiff
path: root/src/variabledata.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/variabledata.h')
-rw-r--r--src/variabledata.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/variabledata.h b/src/variabledata.h
index c306d43ed..c06c16e58 100644
--- a/src/variabledata.h
+++ b/src/variabledata.h
@@ -45,8 +45,8 @@ class VariableData
class IntData : public VariableData
{
public:
- IntData(int value)
- { mData = value; }
+ IntData(int value) : mData(value)
+ { }
int getData() const
{ return mData; }
@@ -61,8 +61,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
{ return mData; }
@@ -77,8 +77,8 @@ class StringData : public VariableData
class FloatData : public VariableData
{
public:
- FloatData(double value)
- { mData = value; }
+ FloatData(double value) : mData(value)
+ { }
double getData() const
{ return mData; }
@@ -93,8 +93,8 @@ class FloatData : public VariableData
class BoolData : public VariableData
{
public:
- BoolData(bool value)
- { mData = value; }
+ BoolData(bool value) : mData(value)
+ { }
bool getData() const
{ return mData; }