diff options
author | Adam <Adam@anope.org> | 2010-07-27 21:31:13 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-07-27 21:31:13 -0400 |
commit | 4b870cc5f9671201dfad6fa836847cdd40aef519 (patch) | |
tree | 34aec3d880a22a8a828e5f5a7917e583cee92023 /modules/extra/mysql/db_mysql_write.cpp | |
parent | 66c0e280ee9d4940fe5a477d3e933ba4221e35db (diff) |
Added debug_cast which uses dynamic_cast on debug builds, and static_cast on release builds
Diffstat (limited to 'modules/extra/mysql/db_mysql_write.cpp')
-rw-r--r-- | modules/extra/mysql/db_mysql_write.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/extra/mysql/db_mysql_write.cpp b/modules/extra/mysql/db_mysql_write.cpp index 2d44450c1..5d2ef2a78 100644 --- a/modules/extra/mysql/db_mysql_write.cpp +++ b/modules/extra/mysql/db_mysql_write.cpp @@ -66,7 +66,7 @@ static std::string MakeMLock(ChannelInfo *ci, bool status) { if ((*it)->Class == MC_CHANNEL) { - ChannelMode *cm = dynamic_cast<ChannelMode *>(*it); + ChannelMode *cm = debug_cast<ChannelMode *>(*it); if (ci->HasMLock(cm->Name, status)) ret += " " + cm->NameAsString; @@ -97,7 +97,7 @@ static std::string GetMLockParams(ChannelInfo *ci) { if ((*it)->Class == MC_CHANNEL) { - ChannelMode *cm = dynamic_cast<ChannelMode *>(*it); + ChannelMode *cm = debug_cast<ChannelMode *>(*it); std::string param; if (ci->GetParam(cm->Name, param)) |