new_IfcBaseClass: use ref for safety

This commit is contained in:
Andrej730
2026-07-24 16:56:49 +05:00
parent 189eeae719
commit c91d6d54bc
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1045,8 +1045,8 @@ from .entity_instance import entity_instance_mixin as _entity_instance_mixin_bas
return IFCOPENSHELL_VERSION;
}
express::Base new_IfcBaseClass(ifcopenshell::file* file, const std::string& name) {
return file->create(file->schema()->declaration_by_name(name));
express::Base new_IfcBaseClass(ifcopenshell::file& file, const std::string& name) {
return file.create(file.schema()->declaration_by_name(name));
}
%}