mirror of
https://github.com/overte-org/overte.git
synced 2025-07-16 00:56:48 +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());
|
emit deletingEntityPointer(existingEntity.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theOperator.getEntities().size() > 0) {
|
if (!theOperator.getEntities().empty()) {
|
||||||
recurseTreeWithOperator(&theOperator);
|
recurseTreeWithOperator(&theOperator);
|
||||||
processRemovedEntities(theOperator);
|
processRemovedEntities(theOperator);
|
||||||
_isDirty = true;
|
_isDirty = true;
|
||||||
|
@ -1802,7 +1802,7 @@ void EntityTree::update(bool simulate) {
|
||||||
PROFILE_RANGE(simulation_physics, "Deletes");
|
PROFILE_RANGE(simulation_physics, "Deletes");
|
||||||
SetOfEntities deadEntities;
|
SetOfEntities deadEntities;
|
||||||
_simulation->takeDeadEntities(deadEntities);
|
_simulation->takeDeadEntities(deadEntities);
|
||||||
if (deadEntities.size() > 0) {
|
if (!deadEntities.empty()) {
|
||||||
// translate into list of ID's
|
// translate into list of ID's
|
||||||
QSet<EntityItemID> idsToDelete;
|
QSet<EntityItemID> idsToDelete;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue