mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Update clear_schemas() which is now handled by unique_ptr
This commit is contained in:
@@ -266,9 +266,6 @@ void IfcParse::clear_schemas() {
|
|||||||
#endif
|
#endif
|
||||||
Header_section_schema::clear_schema();
|
Header_section_schema::clear_schema();
|
||||||
|
|
||||||
// clear any remaining registered schemas
|
// Schemas are owned by their respective modules in a unique_ptr, so just clear the map
|
||||||
// we pop schemas until map is empty, because map iteration is invalidated after each erasure
|
schemas.clear();
|
||||||
while (!schemas.empty()) {
|
|
||||||
delete schemas.begin()->second;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user