Prefer prefix ++/-- on non-primitive types

Postfix ++/-- might cause the creation of a tmp instance
that might be optimized out. Mights are bad. Prefix doesn't
have this problem.
This commit is contained in:
Michael Cook (mackal) committed 2014-01-13 22:14:02 -05:00
1 parent 47c33f3b31
commit 4216627604
51 files changed
+405 -426

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ void WorldServer::OnConnected() {
std::map<std::string, ZoneLaunch *>::iterator cur, end;
cur = m_zones.begin();
end = m_zones.end();
for(; cur != end; cur++) {
for(; cur != end; ++cur) {
cur->second->SendStatus();
}
}