diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-23 08:41:22 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-23 08:41:22 +0000 |
| commit | 80cbac3769b03d6e88c509ef6cfbe4e1983ca748 (patch) | |
| tree | 0c2607fa08e3b04cb6a8db4f04109a241ebb7785 /src/core | |
| parent | f82640af7cc534f284914e12233098c4882a484d (diff) | |
Replaced some static_casts related to modes with dynamic_cast - its a bit safer
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2715 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/cs_set.c | 2 | ||||
| -rw-r--r-- | src/core/os_defcon.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/cs_set.c b/src/core/cs_set.c index 1ac511e17..3d2876f38 100644 --- a/src/core/cs_set.c +++ b/src/core/cs_set.c @@ -212,7 +212,7 @@ class CommandCSSet : public Command if (cm->Type == MODE_PARAM) { - cmp = static_cast<ChannelModeParam *>(cm); + cmp = dynamic_cast<ChannelModeParam *>(cm); if (!modeparams.GetToken(param)) continue; diff --git a/src/core/os_defcon.c b/src/core/os_defcon.c index 4b427d602..804839bf8 100644 --- a/src/core/os_defcon.c +++ b/src/core/os_defcon.c @@ -445,7 +445,7 @@ void defconParseModeString(const char *str) if (cm->Type == MODE_PARAM) { - cmp = static_cast<ChannelModeParam *>(cm); + cmp = dynamic_cast<ChannelModeParam *>(cm); if (!ss.GetToken(param)) { |
