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 Jan 25, 2022
1 parent f0d6050 commit 099bf16
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 099bf16

Please sign in to comment.