diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-17 04:04:24 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-17 04:04:24 +0000 |
commit | e10fe1cd767cf479837eecc1e1b26615d63ea5ac (patch) | |
tree | d1fbb79219d5598cd2370eb54f8a75aa5b9f25ef /src/nickcore.cpp | |
parent | 88330c07adc5bb3b085cf6ede1d30c0c48afcfb6 (diff) |
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
Diffstat (limited to 'src/nickcore.cpp')
-rw-r--r-- | src/nickcore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp index c607fffba..425cb0d93 100644 --- a/src/nickcore.cpp +++ b/src/nickcore.cpp @@ -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 |