From bb93623e2d09d80cbcd31aef48bba46ed6993f7c Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 6 Dec 2024 15:03:45 -0500 Subject: [PATCH] Fix some commments --- .../codegen-data-model-provider/CodegenDataModelProvider.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/codegen-data-model-provider/CodegenDataModelProvider.cpp b/src/app/codegen-data-model-provider/CodegenDataModelProvider.cpp index e7fd54d7da3172..86c22ccd0b060d 100644 --- a/src/app/codegen-data-model-provider/CodegenDataModelProvider.cpp +++ b/src/app/codegen-data-model-provider/CodegenDataModelProvider.cpp @@ -113,10 +113,11 @@ struct DeviceListWrapper explicit DeviceListWrapper(Span types) : deviceTypes(types) {} }; +/// Search by device type within a `DeviceListWrapper` which just wraps a span of EmberAfDeviceType struct ByDeviceType { - using Key = DataModel::DeviceTypeEntry; // the KEY inside a type │ │ │ - using Type = const EmberAfDeviceType; // the values for a sub-search │ │ │ + using Key = DataModel::DeviceTypeEntry; + using Type = const EmberAfDeviceType; static Span GetSpan(DeviceListWrapper & data) { return data.deviceTypes; } static bool HasKey(const Key & id, const Type & instance) {