mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-16 02:24:30 +00:00
new_IfcBaseClass: use ref for safety
This commit is contained in:
@@ -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));
|
||||
}
|
||||
%}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user