mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-05 15:36:38 +00:00
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:
+1
-1
@@ -131,7 +131,7 @@ public:
|
||||
hv_clear(hv);
|
||||
|
||||
// Iterate through key-value pairs, storing them in hash
|
||||
for (it = vals.begin(); it != vals.end(); it++)
|
||||
for (it = vals.begin(); it != vals.end(); ++it)
|
||||
{
|
||||
int keylen = static_cast<int>(it->first.length());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user