mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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
|
||||
Header_section_schema::clear_schema();
|
||||
|
||||
// clear any remaining registered schemas
|
||||
// we pop schemas until map is empty, because map iteration is invalidated after each erasure
|
||||
while (!schemas.empty()) {
|
||||
delete schemas.begin()->second;
|
||||
}
|
||||
// Schemas are owned by their respective modules in a unique_ptr, so just clear the map
|
||||
schemas.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user