mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 20:00:02 +00:00
Fix warning regarding shadowing variable names.
This commit is contained in:
@@ -1275,8 +1275,7 @@ std::pair<std::string, double> IfcGeom::Kernel::initializeUnits(IfcSchema::IfcUn
|
|||||||
}
|
}
|
||||||
|
|
||||||
const IfcSchema::IfcRepresentationItem* IfcGeom::Kernel::find_item_carrying_style(const IfcSchema::IfcRepresentationItem* item) {
|
const IfcSchema::IfcRepresentationItem* IfcGeom::Kernel::find_item_carrying_style(const IfcSchema::IfcRepresentationItem* item) {
|
||||||
IfcSchema::IfcStyledItem::list::ptr styles = item->StyledByItem();
|
if (item->StyledByItem()->size()) {
|
||||||
if (styles->size()) {
|
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1284,9 +1283,7 @@ const IfcSchema::IfcRepresentationItem* IfcGeom::Kernel::find_item_carrying_styl
|
|||||||
// All instantiations of IfcBooleanOperand (type of FirstOperand) are subtypes of
|
// All instantiations of IfcBooleanOperand (type of FirstOperand) are subtypes of
|
||||||
// IfcGeometricRepresentationItem
|
// IfcGeometricRepresentationItem
|
||||||
item = (IfcSchema::IfcGeometricRepresentationItem*) ((IfcSchema::IfcBooleanClippingResult*) item)->FirstOperand();
|
item = (IfcSchema::IfcGeometricRepresentationItem*) ((IfcSchema::IfcBooleanClippingResult*) item)->FirstOperand();
|
||||||
|
if (item->StyledByItem()->size()) {
|
||||||
IfcSchema::IfcStyledItem::list::ptr styles = item->StyledByItem();
|
|
||||||
if (styles->size()) {
|
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1297,4 +1294,4 @@ const IfcSchema::IfcRepresentationItem* IfcGeom::Kernel::find_item_carrying_styl
|
|||||||
// distinctly styled union operands.
|
// distinctly styled union operands.
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user