summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-07-27 21:31:13 -0400
committerAdam <Adam@anope.org>2010-07-27 21:31:13 -0400
commit4b870cc5f9671201dfad6fa836847cdd40aef519 (patch)
tree34aec3d880a22a8a828e5f5a7917e583cee92023 /src/regchannel.cpp
parent66c0e280ee9d4940fe5a477d3e933ba4221e35db (diff)
Added debug_cast which uses dynamic_cast on debug builds, and static_cast on release builds
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 019f173e5..ea16b05da 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -352,7 +352,7 @@ void ChannelInfo::LoadMLock()
{
if ((*mit)->Class == MC_CHANNEL)
{
- ChannelMode *cm = dynamic_cast<ChannelMode *>(*mit);
+ ChannelMode *cm = debug_cast<ChannelMode *>(*mit);
if (cm->NameAsString.equals_ci(*it))
this->SetMLock(cm->Name, true);
@@ -371,7 +371,7 @@ void ChannelInfo::LoadMLock()
{
if ((*mit)->Class == MC_CHANNEL)
{
- ChannelMode *cm = dynamic_cast<ChannelMode *>(*mit);
+ ChannelMode *cm = debug_cast<ChannelMode *>(*mit);
if (cm->NameAsString.equals_ci(*it))
this->SetMLock(cm->Name, false);
@@ -392,7 +392,7 @@ void ChannelInfo::LoadMLock()
{
if ((*mit)->Class == MC_CHANNEL)
{
- ChannelMode *cm = dynamic_cast<ChannelMode *>(*mit);
+ ChannelMode *cm = debug_cast<ChannelMode *>(*mit);
if (cm->NameAsString.equals_ci(it->first))
this->SetMLock(cm->Name, true, it->second);