mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 11:24:19 +00:00
Fix warning
This commit is contained in:
@@ -1729,9 +1729,9 @@ void IfcFile::removeEntity(IfcUtil::IfcBaseClass* entity) {
|
||||
const unsigned int name = entity_attribute->entity->id();
|
||||
// Do not update inverses for simple types (which have id()==0 in IfcOpenShell).
|
||||
if (name != 0) {
|
||||
entities_by_ref_t::iterator it = byref.find(name);
|
||||
if (it != byref.end()) {
|
||||
std::vector<unsigned>& ids = it->second;
|
||||
entities_by_ref_t::iterator byref_it = byref.find(name);
|
||||
if (byref_it != byref.end()) {
|
||||
std::vector<unsigned>& ids = byref_it->second;
|
||||
std::remove(ids.begin(), ids.end(), name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user