mirror of
https://github.com/anope/anope.git
synced 2026-06-24 18:46:37 +02:00
Removed some unnecessary casts, used C++-style casts over C-style casts, fixed a few warnings (one possibly fatal one).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2655 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -346,13 +346,13 @@ void ModuleManager::Attach(Implementation* i, Module* mod, size_t sz)
|
||||
void ModuleManager::DetachAll(Module* mod)
|
||||
{
|
||||
for (size_t n = I_BEGIN + 1; n != I_END; ++n)
|
||||
Detach((Implementation)n, mod);
|
||||
Detach(static_cast<Implementation>(n), mod);
|
||||
}
|
||||
|
||||
bool ModuleManager::SetPriority(Module* mod, Priority s)
|
||||
{
|
||||
for (size_t n = I_BEGIN + 1; n != I_END; ++n)
|
||||
SetPriority(mod, (Implementation)n, s);
|
||||
SetPriority(mod, static_cast<Implementation>(n), s);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user