summaryrefslogtreecommitdiff
path: root/src/variabledata.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-06 00:04:33 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-06 00:04:33 +0300
commit7b155f111daf5d7ae477b16d0f0789b1113bea74 (patch)
tree2d2711ab1f9daed793171383af1a7e1fa6ff737c /src/variabledata.h
parentc3afff20d4989ab2835545715bbe67e5b5d9b353 (diff)
downloadmanaverse-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.gz
manaverse-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.bz2
manaverse-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.xz
manaverse-7b155f111daf5d7ae477b16d0f0789b1113bea74.zip
Fix some issues after auto checking.
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; }