From 4b870cc5f9671201dfad6fa836847cdd40aef519 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 27 Jul 2010 21:31:13 -0400 Subject: Added debug_cast which uses dynamic_cast on debug builds, and static_cast on release builds --- modules/extra/mysql/db_mysql_write.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/extra/mysql/db_mysql_write.cpp') 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(*it); + ChannelMode *cm = debug_cast(*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(*it); + ChannelMode *cm = debug_cast(*it); std::string param; if (ci->GetParam(cm->Name, param)) -- cgit