mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 05:37:17 +00:00
Change emptiness checks to empty() from size() [clang-tidy]
This has two benefits, it's clear what we are checking and size() isn't always constant time, where empty is (performance!)
This commit is contained in:
1 parent
c43d436b1f
commit
cdbeb24a05
16 files changed
+45
-45
No files matched your search
+1
-1
@@ -5333,7 +5333,7 @@ void Client::SendRewards()
|
||||
rewards.push_back(cr);
|
||||
}
|
||||
|
||||
if(rewards.size() == 0)
|
||||
if(rewards.empty())
|
||||
return;
|
||||
|
||||
EQApplicationPacket *vetapp = new EQApplicationPacket(OP_VetRewardsAvaliable, (sizeof(InternalVeteranReward) * rewards.size()));
|
||||
|
||||
Reference in new issue
Block a user