From be5a9496e91cfb099a8fa39405c12ef60af62315 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Sun, 12 Nov 2023 11:00:12 -0500 Subject: [PATCH] Followup on post-merge comments on #30393 (#30421) * Use _span * Remove comment * Fix alignment * restyle * Remove extra bracket * Fix init --------- Co-authored-by: Andrei Litvin --- .../placeholder/linux/static-supported-temperature-levels.cpp | 4 +--- src/app/clusters/scenes-server/SceneTableImpl.cpp | 1 - .../time-synchronization-server.cpp | 2 +- src/lib/core/CHIPError.h | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/placeholder/linux/static-supported-temperature-levels.cpp b/examples/placeholder/linux/static-supported-temperature-levels.cpp index 88ed689a6032a4..14a1087d230a4d 100644 --- a/examples/placeholder/linux/static-supported-temperature-levels.cpp +++ b/examples/placeholder/linux/static-supported-temperature-levels.cpp @@ -27,9 +27,7 @@ using namespace chip::app::Clusters::TemperatureControl; using chip::Protocols::InteractionModel::Status; // TODO: Configure your options for each endpoint -CharSpan AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions[] = { CharSpan::fromCharString("Hot"), - CharSpan::fromCharString("Warm"), - CharSpan::fromCharString("Cold") }; +CharSpan AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions[] = { "Hot"_span, "Warm"_span, "Cold"_span }; const AppSupportedTemperatureLevelsDelegate::EndpointPair AppSupportedTemperatureLevelsDelegate::supportedOptionsByEndpoints [EMBER_AF_TEMPERATURE_CONTROL_CLUSTER_SERVER_ENDPOINT_COUNT] = { diff --git a/src/app/clusters/scenes-server/SceneTableImpl.cpp b/src/app/clusters/scenes-server/SceneTableImpl.cpp index ed0a86ab282377..7f5870f0ecf2b3 100644 --- a/src/app/clusters/scenes-server/SceneTableImpl.cpp +++ b/src/app/clusters/scenes-server/SceneTableImpl.cpp @@ -209,7 +209,6 @@ struct SceneTableData : public SceneTableEntry, PersistentData