Fix ambiguous overload after dedbf7014a

This commit is contained in:
Thomas Krijnen
2024-07-17 03:43:55 +02:00
parent 669b0b8c83
commit 7a10edbd73
+2 -2
View File
@@ -237,13 +237,13 @@ IfcGeom::BRepElement* ifcopenshell::geometry::Converter::create_brep_for_represe
const IfcUtil::IfcBaseEntity *representation = representation_node->instance->as<IfcUtil::IfcBaseEntity>();
auto representation_identifier = representation->get("RepresentationIdentifier");
if (!representation_identifier->isNull()) {
context_string = *representation_identifier;
context_string = (std::string) *representation_identifier;
}
else {
IfcUtil::IfcBaseClass *context = (IfcUtil::IfcBaseClass *) *representation->get("ContextOfItems");
auto context_type = context->as<IfcUtil::IfcBaseEntity>()->get("ContextType");
if (!context_type->isNull()) {
context_string = *context_type;
context_string = (std::string) *context_type;
}
}