Skip to content

Commit

Permalink
NetworkObjectDirectory: update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
tobydox committed May 29, 2020
1 parent 06d7042 commit 9f2db1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/NetworkObjectDirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,15 @@ void NetworkObjectDirectory::removeObjects( const NetworkObject& parent, const N

auto& objectList = m_objects[parent.modelId()]; // clazy:exclude=detaching-member
int index = 0;
QList<NetworkObject::ModelId> groupsToRemove;
QList<NetworkObject::ModelId> objectsToRemove;

for( auto it = objectList.begin(); it != objectList.end(); )
{
if( removeObjectFilter( *it ) )
{
if( it->type() == NetworkObject::Type::Location )
{
groupsToRemove.append( it->modelId() );
objectsToRemove.append( it->modelId() );
}

Q_EMIT objectsAboutToBeRemoved( parent, index, 1 );
Expand All @@ -330,7 +330,7 @@ void NetworkObjectDirectory::removeObjects( const NetworkObject& parent, const N
}
}

for( const auto& groupId : groupsToRemove )
for( const auto& groupId : objectsToRemove )
{
m_objects.remove( groupId );
}
Expand Down

0 comments on commit 9f2db1e

Please sign in to comment.