diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-01 16:00:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-01 16:00:26 +0300 |
commit | c635347f18378aea08ba48e991ddb8ff1010c27c (patch) | |
tree | 835b7c57d3891f7944447d9a488ad7d490480e18 /src/depricatedevent.cpp | |
parent | 5a35288a7524c6b5cb9a4e8e3aa93d756b016743 (diff) | |
download | plus-c635347f18378aea08ba48e991ddb8ff1010c27c.tar.gz plus-c635347f18378aea08ba48e991ddb8ff1010c27c.tar.bz2 plus-c635347f18378aea08ba48e991ddb8ff1010c27c.tar.xz plus-c635347f18378aea08ba48e991ddb8ff1010c27c.zip |
Fix code style.
Diffstat (limited to 'src/depricatedevent.cpp')
-rw-r--r-- | src/depricatedevent.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/depricatedevent.cpp b/src/depricatedevent.cpp index 9cb37ac85..11ea29311 100644 --- a/src/depricatedevent.cpp +++ b/src/depricatedevent.cpp @@ -53,11 +53,11 @@ int DepricatedEvent::getInt(const std::string &key) const if (it == mData.end()) return 0; - VariableData *const data = it->second; + const VariableData *const data = it->second; if (!data || data->getType() != VariableData::DATA_INT) return 0; - return static_cast<IntData *>(data)->getData(); + return static_cast<const IntData *>(data)->getData(); } void DepricatedEvent::setString(const std::string &key, @@ -75,11 +75,11 @@ const std::string DepricatedEvent::getString(const std::string &key) const if (it == mData.end()) return ""; - VariableData *const data = it->second; + const VariableData *const data = it->second; if (!data || data->getType() != VariableData::DATA_STRING) return ""; - return static_cast<StringData *>(data)->getData(); + return static_cast<const StringData *>(data)->getData(); } @@ -97,11 +97,11 @@ double DepricatedEvent::getFloat(const std::string &key) const if (it == mData.end()) return 0; - VariableData *const data = it->second; + const VariableData *const data = it->second; if (!data || data->getType() != VariableData::DATA_FLOAT) return 0; - return static_cast<FloatData *>(data)->getData(); + return static_cast<const FloatData *>(data)->getData(); } void DepricatedEvent::trigger(const Channels channel, |