[wpiutil] DynamicStruct: Make GetEnumValues() const (#8223)

Also remove unnecessary include.
This commit is contained in:
Peter Johnson
2025-09-12 07:27:43 -07:00
committed by GitHub
parent 90d90f334d
commit 855ef10d58

View File

@@ -10,7 +10,6 @@
#include <span>
#include <string>
#include <string_view>
#include <unordered_set>
#include <utility>
#include <vector>
@@ -190,7 +189,7 @@ class StructFieldDescriptor {
*
* @return set of enumerated values
*/
const EnumValues& GetEnumValues() { return m_enum; }
const EnumValues& GetEnumValues() const { return m_enum; }
/**
* Gets the struct descriptor for a struct data type.