mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 17:54:00 +02:00
use list.empty() instead of comparing list.size()
This commit is contained in:
parent
6d7574cab9
commit
d57cb0b5d7
1 changed files with 2 additions and 2 deletions
|
@ -648,7 +648,7 @@ void EntityTree::deleteEntities(QSet<EntityItemID> entityIDs, bool force, bool i
|
|||
emit deletingEntityPointer(existingEntity.get());
|
||||
}
|
||||
|
||||
if (theOperator.getEntities().size() > 0) {
|
||||
if (!theOperator.getEntities().empty()) {
|
||||
recurseTreeWithOperator(&theOperator);
|
||||
processRemovedEntities(theOperator);
|
||||
_isDirty = true;
|
||||
|
@ -1802,7 +1802,7 @@ void EntityTree::update(bool simulate) {
|
|||
PROFILE_RANGE(simulation_physics, "Deletes");
|
||||
SetOfEntities deadEntities;
|
||||
_simulation->takeDeadEntities(deadEntities);
|
||||
if (deadEntities.size() > 0) {
|
||||
if (!deadEntities.empty()) {
|
||||
// translate into list of ID's
|
||||
QSet<EntityItemID> idsToDelete;
|
||||
|
||||
|
|
Loading…
Reference in a new issue