Skip to content

Commit

Permalink
pull out unnecessary lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
odysseus654 committed Sep 19, 2021
1 parent 7489d34 commit c415ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/octree/src/OctreeEditPacketSender.cpp
Expand Up @@ -91,7 +91,7 @@ void OctreeEditPacketSender::queuePacketToNode(const QUuid& nodeUUID, std::uniqu
QSharedPointer<NodeList> nodeList = DependencyManager::get<NodeList>();
if (nodeUUID.isNull()) {
QMutexLocker lock(&_packetsQueueLock);
nodeList->eachNode([&](const SharedNodePointer& node) { queueMessage(node); });
nodeList->eachNode(queueMessage);
} else {
SharedNodePointer node = nodeList->nodeWithUUID(nodeUUID);
if (node) {
Expand All @@ -116,7 +116,7 @@ void OctreeEditPacketSender::queuePacketListToNode(const QUuid& nodeUUID, std::u

QSharedPointer<NodeList> nodeList = DependencyManager::get<NodeList>();
if (nodeUUID.isNull()) {
nodeList->eachNode([&](const SharedNodePointer& node) { queueMessage(node); });
nodeList->eachNode(queueMessage);
} else {
SharedNodePointer node = nodeList->nodeWithUUID(nodeUUID);
if (node) {
Expand Down

0 comments on commit c415ba7

Please sign in to comment.