mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Merge pull request #1533 from birarda/nodelist-container
simplify return of nodeWithUUID from NodeList
This commit is contained in:
commit
c07f97358e
1 changed files with 1 additions and 6 deletions
|
@ -264,12 +264,7 @@ SharedNodePointer NodeList::nodeWithAddress(const HifiSockAddr &senderSockAddr)
|
|||
}
|
||||
|
||||
SharedNodePointer NodeList::nodeWithUUID(const QUuid& nodeUUID) {
|
||||
QHash<QUuid, QSharedPointer<Node> >::const_iterator foundIterator = _nodeHash.find(nodeUUID);
|
||||
if (foundIterator != _nodeHash.end()) {
|
||||
return foundIterator.value();
|
||||
} else {
|
||||
return SharedNodePointer();
|
||||
}
|
||||
return _nodeHash.value(nodeUUID);
|
||||
}
|
||||
|
||||
void NodeList::clear() {
|
||||
|
|
Loading…
Reference in a new issue