diff --git a/src/ifcparse/parse.cpp b/src/ifcparse/parse.cpp index f76f783150..eb3a0459e9 100644 --- a/src/ifcparse/parse.cpp +++ b/src/ifcparse/parse.cpp @@ -3534,14 +3534,14 @@ template void IFC_PARSE_API express::base::set_attribute_value -T Entity::get_value(const std::string& name) const { +T entity::get_value(const std::string& name) const { auto attr = get(name); T v = attr; return v; } template -T Entity::get_value(const std::string& name, const T& default_value) const { +T entity::get_value(const std::string& name, const T& default_value) const { auto attr = get(name); if (attr.isNull()) { return default_value; diff --git a/src/ifcviewer/GeometryStreamer.cpp b/src/ifcviewer/GeometryStreamer.cpp index 5c543ef892..e7ff6458c0 100644 --- a/src/ifcviewer/GeometryStreamer.cpp +++ b/src/ifcviewer/GeometryStreamer.cpp @@ -308,7 +308,7 @@ static std::vector prioritisedContextIds(ifcopenshell::file* ifc_file) { ContextInfo info{}; info.id = ctx.id(); - const auto entity = ctx.as(); + const auto entity = ctx.as(); const std::string ctype = entity.get_value("ContextType", ""); const std::string cident = @@ -416,7 +416,7 @@ void GeometryStreamer::run(const std::string& path, int num_threads) { std::set gross_ids; { const std::string& schema_name = ifc_file_->schema()->name(); - std::vector elements = + std::vector elements = ifc_file_->instances_by_type("IfcElement"); if (schema_name == "IFC2X3" || schema_name == "IFC4") { auto proxies = ifc_file_->instances_by_type("IfcProxy"); @@ -438,7 +438,7 @@ void GeometryStreamer::run(const std::string& path, int num_threads) { if (decl.is("IfcElement")) { try { opening_count = static_cast( - e.as().get_inverse("HasOpenings").size()); + e.as().get_inverse("HasOpenings").size()); } catch (...) { // HasOpenings not declared on this entity — treat as 0. }