summaryrefslogtreecommitdiff
path: root/src/depricatedevent.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-26 20:58:09 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-26 21:45:25 +0300
commita6978e254af2a83b2b52778b4c59828b07542e5b (patch)
tree6cdca313b863f3f60825afd7cb62e342906e7495 /src/depricatedevent.cpp
parentf5ac38e101f180d6f7e5d6b4cd42bcad99af58a6 (diff)
downloadmanaplus-a6978e254af2a83b2b52778b4c59828b07542e5b.tar.gz
manaplus-a6978e254af2a83b2b52778b4c59828b07542e5b.tar.bz2
manaplus-a6978e254af2a83b2b52778b4c59828b07542e5b.tar.xz
manaplus-a6978e254af2a83b2b52778b4c59828b07542e5b.zip
Fix code style and auto check issues.
Diffstat (limited to 'src/depricatedevent.cpp')
-rw-r--r--src/depricatedevent.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/depricatedevent.cpp b/src/depricatedevent.cpp
index 965876fd1..0d5ffca7b 100644
--- a/src/depricatedevent.cpp
+++ b/src/depricatedevent.cpp
@@ -39,7 +39,8 @@ DepricatedEvent::~DepricatedEvent()
}
}
-void DepricatedEvent::setInt(const std::string &key, int value) throw (BadDepricatedEvent)
+void DepricatedEvent::setInt(const std::string &key, int value)
+ throw (BadDepricatedEvent)
{
if (mData.find(key) != mData.end())
throw KEY_ALREADY_EXISTS;
@@ -47,7 +48,8 @@ void DepricatedEvent::setInt(const std::string &key, int value) throw (BadDepric
mData[key] = new IntData(value);
}
-int DepricatedEvent::getInt(const std::string &key) const throw (BadDepricatedEvent)
+int DepricatedEvent::getInt(const std::string &key) const
+ throw (BadDepricatedEvent)
{
VariableMap::const_iterator it = mData.find(key);
if (it == mData.end())
@@ -82,7 +84,8 @@ const std::string &DepricatedEvent::getString(const std::string &key)
}
-void DepricatedEvent::setFloat(const std::string &key, double value) throw (BadDepricatedEvent)
+void DepricatedEvent::setFloat(const std::string &key, double value)
+ throw (BadDepricatedEvent)
{
if (mData.find(key) != mData.end())
throw KEY_ALREADY_EXISTS;
@@ -90,7 +93,8 @@ void DepricatedEvent::setFloat(const std::string &key, double value) throw (BadD
mData[key] = new FloatData(value);
}
-double DepricatedEvent::getFloat(const std::string &key) const throw (BadDepricatedEvent)
+double DepricatedEvent::getFloat(const std::string &key) const
+ throw (BadDepricatedEvent)
{
VariableMap::const_iterator it = mData.find(key);
if (it == mData.end())