mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
return result of QHash value from nodeWithUUID
This commit is contained in:
parent
602060525b
commit
b4438c04c6
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