Apply suggestions from code review
This commit is contained in:
@@ -5014,11 +5014,13 @@ bool TopoShape::getRelatedElementsCached(const Data::MappedName &name,
|
||||
HistoryTraceType sameType,
|
||||
QVector<Data::MappedElement> &names) const
|
||||
{
|
||||
if(!_cache)
|
||||
if(!_cache) {
|
||||
return false;
|
||||
}
|
||||
auto it = _cache->relations.find(ShapeRelationKey(name,sameType));
|
||||
if(it == _cache->relations.end())
|
||||
if(it == _cache->relations.end()) {
|
||||
return false;
|
||||
}
|
||||
names = it->second;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user