mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Fix examples
This commit is contained in:
@@ -117,10 +117,10 @@ template <typename Schema, typename T>
|
||||
void process_pset(element_properties& props, const T& inst) {
|
||||
// Process an individual Property or Quantity set.
|
||||
if (auto pset = inst.template as<typename Schema::IfcPropertySet>()) {
|
||||
if (!pset->Name()) {
|
||||
if (!pset.Name()) {
|
||||
return;
|
||||
}
|
||||
auto ps = pset->HasProperties();
|
||||
auto ps = pset.HasProperties();
|
||||
for (auto& p : ps) {
|
||||
if (auto singleval = p.template as<typename Schema::IfcPropertySingleValue>()) {
|
||||
std::string propname, propvalue;
|
||||
|
||||
Reference in New Issue
Block a user