summaryrefslogtreecommitdiff
path: root/src/event.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-08-12 13:57:16 -0600
committerJared Adams <jaxad0127@gmail.com>2010-08-12 14:00:20 -0600
commit2507a15f8cf8728e8006aec7cdef30e484612162 (patch)
treeee2edf1afca72ac2501dae701f2cc489f3afe301 /src/event.cpp
parentbdc14e11430b6c6538e6a2c721d22dabe83487e3 (diff)
downloadmana-client-2507a15f8cf8728e8006aec7cdef30e484612162.tar.gz
mana-client-2507a15f8cf8728e8006aec7cdef30e484612162.tar.bz2
mana-client-2507a15f8cf8728e8006aec7cdef30e484612162.tar.xz
mana-client-2507a15f8cf8728e8006aec7cdef30e484612162.zip
Fix some issues in the Event class
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src/event.cpp')
-rw-r--r--src/event.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event.cpp b/src/event.cpp
index a2f233ac..dde04920 100644
--- a/src/event.cpp
+++ b/src/event.cpp
@@ -55,7 +55,7 @@ int Event::getInt(const std::string &key) const throw (BadEvent)
return static_cast<IntData *>(it->second)->getData();
}
-bool Event::hasInt(const std::string &key)
+bool Event::hasInt(const std::string &key) const
{
VariableMap::const_iterator it = mData.find(key);
return !(it == mData.end()
@@ -83,7 +83,7 @@ const std::string &Event::getString(const std::string &key) const throw (BadEven
}
-bool Event::hasString(const std::string &key)
+bool Event::hasString(const std::string &key) const
{
VariableMap::const_iterator it = mData.find(key);
return !(it == mData.end()
@@ -110,7 +110,7 @@ double Event::getFloat(const std::string &key) const throw (BadEvent)
return static_cast<FloatData *>(it->second)->getData();
}
-bool Event::hasFloat(const std::string &key)
+bool Event::hasFloat(const std::string &key) const
{
VariableMap::const_iterator it = mData.find(key);
return !(it == mData.end()
@@ -137,7 +137,7 @@ bool Event::getBool(const std::string &key) const throw (BadEvent)
return static_cast<BoolData *>(it->second)->getData();
}
-bool Event::hasBool(const std::string &key)
+bool Event::hasBool(const std::string &key) const
{
VariableMap::const_iterator it = mData.find(key);
return !(it == mData.end()