mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Explicit cast
This commit is contained in:
@@ -436,7 +436,7 @@ namespace {
|
|||||||
auto pset = (IfcUtil::IfcBaseEntity*) (IfcUtil::IfcBaseClass*) *((IfcUtil::IfcBaseEntity*) rel)->get("RelatingPropertyDefinition");
|
auto pset = (IfcUtil::IfcBaseEntity*) (IfcUtil::IfcBaseClass*) *((IfcUtil::IfcBaseEntity*) rel)->get("RelatingPropertyDefinition");
|
||||||
std::string pset_name;
|
std::string pset_name;
|
||||||
if (!pset->get("Name")->isNull()) {
|
if (!pset->get("Name")->isNull()) {
|
||||||
pset_name = *pset->get("Name");
|
pset_name = (std::string) *pset->get("Name");
|
||||||
}
|
}
|
||||||
IfcEntityList::ptr props = *pset->get("HasProperties");
|
IfcEntityList::ptr props = *pset->get("HasProperties");
|
||||||
for (auto& prop : *props) {
|
for (auto& prop : *props) {
|
||||||
|
|||||||
Reference in New Issue
Block a user