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.
This commit is contained in:
Andrej730
2024-09-17 12:40:40 +05:00
parent a7cac5c77b
commit 2a2efefac3
+1 -1
View File
@@ -496,7 +496,7 @@ class IFC_PARSE_API schema_definition {
}
const declaration* declaration_by_name(size_t name) const {
return declarations_[name];
return declarations_.at(name);
}
const std::vector<const declaration*>& declarations() const { return declarations_; }