Core: Clean up here and there.

*replase postfix iterator increment\decrement with prefix in cycles
*replase strlen(*char) != 0 with *char[0] != '\0'
*replase strlen(rStr.c_str()) with rStr.length()
This commit is contained in:
Chaplain
2011-08-23 18:09:08 +03:00
parent 7e1f3ceb44
commit fb27848510
13 changed files with 18 additions and 20 deletions
@@ -1664,7 +1664,7 @@ void Battleground::SendWarningToAll(int32 entry, ...)
data << (uint32)1;
data << (uint8)0;
data << (uint64)0;
data << (uint32)(strlen(msg.c_str())+1);
data << (uint32)(msg.length() + 1);
data << msg.c_str();
data << (uint8)0;
for (BattlegroundPlayerMap::const_iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)