return result of QHash value from nodeWithUUID

This commit is contained in:
Stephen Birarda 2014-01-15 11:31:23 -08:00
parent 602060525b
commit b4438c04c6

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