1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 04:23:13 +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:
cyberbotx
2009-11-17 04:04:24 +00:00
parent 88330c07ad
commit e10fe1cd76
19 changed files with 69 additions and 72 deletions
+3 -3
View File
@@ -466,7 +466,7 @@ User *finduser(const char *nick)
*/
const bool User::HasMode(UserModeName Name) const
{
return modes[(size_t)Name];
return modes[Name];
}
/** Set a mode on the user
@@ -474,7 +474,7 @@ const bool User::HasMode(UserModeName Name) const
*/
void User::SetMode(UserModeName Name)
{
modes[(size_t)Name] = true;
modes[Name] = true;
FOREACH_MOD(I_OnUserModeSet, OnUserModeSet(this, Name));
}
@@ -496,7 +496,7 @@ void User::SetMode(char ModeChar)
*/
void User::RemoveMode(UserModeName Name)
{
modes[(size_t)Name] = false;
modes[Name] = false;
FOREACH_MOD(I_OnUserModeUnset, OnUserModeUnset(this, Name));
}