mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 21:12:07 +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();
|
const unsigned int name = entity_attribute->entity->id();
|
||||||
// Do not update inverses for simple types (which have id()==0 in IfcOpenShell).
|
// Do not update inverses for simple types (which have id()==0 in IfcOpenShell).
|
||||||
if (name != 0) {
|
if (name != 0) {
|
||||||
entities_by_ref_t::iterator it = byref.find(name);
|
entities_by_ref_t::iterator byref_it = byref.find(name);
|
||||||
if (it != byref.end()) {
|
if (byref_it != byref.end()) {
|
||||||
std::vector<unsigned>& ids = it->second;
|
std::vector<unsigned>& ids = byref_it->second;
|
||||||
std::remove(ids.begin(), ids.end(), name);
|
std::remove(ids.begin(), ids.end(), name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user