mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:09:52 +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) {
|
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