mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpiutil] DynamicStruct: Clear nested fields when updating/adding a schema (#7334)
This commit is contained in:
@@ -199,6 +199,7 @@ const StructDescriptor* StructDescriptorDatabase::Add(std::string_view name,
|
||||
.first->second;
|
||||
theStruct.m_schema = schema;
|
||||
theStruct.m_fields.clear();
|
||||
theStruct.m_fieldsByName.clear();
|
||||
theStruct.m_fields.reserve(parsed.declarations.size());
|
||||
bool isValid = true;
|
||||
for (auto&& decl : parsed.declarations) {
|
||||
|
||||
Reference in New Issue
Block a user