aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Scripting/ScriptMgr.cpp
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2015-03-11 08:17:37 +0100
committerNayd <dnpd.dd@gmail.com>2015-03-18 01:13:46 +0000
commita38945a3b324c73bdb96951a1d15c7deaa94df1d (patch)
tree5339a1c79e9f38b1179b5d6ad253208425a92cf5 /src/server/game/Scripting/ScriptMgr.cpp
parenta76722ccef8ffb719d5736e9220a94415bd88a5d (diff)
Core/Log: Fix some issues detected by static analysis.
* Either inefficient or wrong usage of string::find(). string::compare() will be faster if string::find's result is compared with 0, because it will not scan the whole string. If your intention is to check that there are no findings in the string, you should compare with std::string::npos. * C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. (cherry picked from commit 8882a6ca78e90d2980a3cd8d53acea9d2137f8b8)
Diffstat (limited to 'src/server/game/Scripting/ScriptMgr.cpp')
0 files changed, 0 insertions, 0 deletions