Unify variant storage (#5118)

This commit is contained in:
Thomas Krijnen
2024-08-23 20:29:07 +02:00
committed by GitHub
parent e2001e82dd
commit d80bcd1a94
107 changed files with 118028 additions and 142394 deletions
+4 -4
View File
@@ -417,11 +417,11 @@ std::string ColladaSerializer::differentiateSlabTypes(const IfcUtil::IfcBaseEnti
{
auto value = slab->get("PredefinedType");
if (value->isNull()) {
if (value.isNull()) {
return "_Unknown";
}
const std::string str_value = *value;
const std::string str_value = value;
std::string result;
if (str_value == "FLOOR") {
@@ -436,10 +436,10 @@ std::string ColladaSerializer::differentiateSlabTypes(const IfcUtil::IfcBaseEnti
result = "_NotDefined";
} else {
auto otype = slab->get("ObjectType");
if (otype->isNull()) {
if (otype.isNull()) {
result = "_Unknown";
} else {
result = (std::string) *otype;
result = (std::string) otype;
}
}