mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:07:58 +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) {
|
SharedNodePointer NodeList::nodeWithUUID(const QUuid& nodeUUID) {
|
||||||
QHash<QUuid, QSharedPointer<Node> >::const_iterator foundIterator = _nodeHash.find(nodeUUID);
|
return _nodeHash.value(nodeUUID);
|
||||||
if (foundIterator != _nodeHash.end()) {
|
|
||||||
return foundIterator.value();
|
|
||||||
} else {
|
|
||||||
return SharedNodePointer();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void NodeList::clear() {
|
void NodeList::clear() {
|
||||||
|
|
Loading…
Reference in a new issue