Merge pull request #1533 from birarda/nodelist-container

simplify return of nodeWithUUID from NodeList
This commit is contained in:
ZappoMan 2014-01-15 12:06:30 -08:00
commit c07f97358e

View file

@ -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() {