Core/Misc: Fix static analysis issues

This commit is contained in:
jackpoz authored and Aokromes committed 2017-11-12 13:24:42 +01:00
1 parent be9a73c0ad
commit 67dc6a7576
7 files changed
+20 -20

No files matched your search

+4 -4
View File
@@ -1977,15 +1977,15 @@ public:
stmt->setInt64(0, muteTime);
}
stmt->setString(1, muteReasonStr.c_str());
stmt->setString(2, muteBy.c_str());
stmt->setString(1, muteReasonStr);
stmt->setString(2, muteBy);
stmt->setUInt32(3, accountId);
LoginDatabase.Execute(stmt);
stmt = LoginDatabase.GetPreparedStatement(LOGIN_INS_ACCOUNT_MUTE);
stmt->setUInt32(0, accountId);
stmt->setUInt32(1, notSpeakTime);
stmt->setString(2, muteBy.c_str());
stmt->setString(3, muteReasonStr.c_str());
stmt->setString(2, muteBy);
stmt->setString(3, muteReasonStr);
LoginDatabase.Execute(stmt);
std::string nameLink = handler->playerLink(targetName);