mirror of
https://github.com/anope/anope.git
synced 2026-06-27 05:06:38 +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:
+2
-2
@@ -25,8 +25,8 @@ NickCore::NickCore(const std::string &coredisplay)
|
||||
|
||||
/* Set default nick core flags */
|
||||
for (size_t t = NI_BEGIN + 1; t != NI_END; ++t)
|
||||
if (NSDefFlags.HasFlag((NickCoreFlag)t))
|
||||
SetFlag((NickCoreFlag)t);
|
||||
if (NSDefFlags.HasFlag(static_cast<NickCoreFlag>(t)))
|
||||
SetFlag(static_cast<NickCoreFlag>(t));
|
||||
}
|
||||
|
||||
/** Default destructor
|
||||
|
||||
Reference in New Issue
Block a user