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 /src/chanserv.cpp | |
| parent | 66c0e280ee9d4940fe5a477d3e933ba4221e35db (diff) | |
Added debug_cast which uses dynamic_cast on debug builds, and static_cast on release builds
Diffstat (limited to 'src/chanserv.cpp')
| -rw-r--r-- | src/chanserv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chanserv.cpp b/src/chanserv.cpp index bcfe239cd..07ebe9525 100644 --- a/src/chanserv.cpp +++ b/src/chanserv.cpp @@ -160,7 +160,7 @@ Anope::string get_mlock_modes(ChannelInfo *ci, int complete) if (cm->Type == MODE_PARAM) { - cmp = dynamic_cast<ChannelModeParam *>(cm); + cmp = debug_cast<ChannelModeParam *>(cm); ci->GetParam(cmp->Name, param); @@ -343,7 +343,7 @@ void check_modes(Channel *c) /* Add the eventual parameter */ if (cm->Type == MODE_PARAM) { - ChannelModeParam *cmp = dynamic_cast<ChannelModeParam *>(cm); + ChannelModeParam *cmp = debug_cast<ChannelModeParam *>(cm); if (!cmp->MinusNoArg) { |
