aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/MySQLConnection.cpp
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2015-03-11 08:17:37 +0100
committerNaios <naios-dev@live.de>2015-03-11 08:20:12 +0100
commit8882a6ca78e90d2980a3cd8d53acea9d2137f8b8 (patch)
tree9bf17bc6d483690a1885026fdcbc1a9c2402318b /src/server/shared/Database/MySQLConnection.cpp
parent678c307db66958b541d053c39ec4355e8d12bcbe (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.
Diffstat (limited to 'src/server/shared/Database/MySQLConnection.cpp')
0 files changed, 0 insertions, 0 deletions