Skip to content

Commit 2a2efef

Browse files
committed
IfcSchema declaration_by_name to be safe
Couldn't find if we actually use it anywhere in the code but better to keep it safe, especially because it's exposed to Python and by accident user might provide some too bit integer instead of a string.
1 parent a7cac5c commit 2a2efef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ifcparse/IfcSchema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ class IFC_PARSE_API schema_definition {
496496
}
497497

498498
const declaration* declaration_by_name(size_t name) const {
499-
return declarations_[name];
499+
return declarations_.at(name);
500500
}
501501

502502
const std::vector<const declaration*>& declarations() const { return declarations_; }

0 commit comments

Comments
 (0)