From 02da3185a36c4397ba532953ce157c68820af4b0 Mon Sep 17 00:00:00 2001 From: Terence Hampson Date: Thu, 6 Jun 2024 17:23:02 +0000 Subject: [PATCH] Address PR comment --- src/app/CommandSender.cpp | 3 ++- src/app/CommandSender.h | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/CommandSender.cpp b/src/app/CommandSender.cpp index ba2bc6d0e0a9c5..3782be62081997 100644 --- a/src/app/CommandSender.cpp +++ b/src/app/CommandSender.cpp @@ -537,7 +537,8 @@ CHIP_ERROR CommandSender::FinishCommand(FinishCommandParameters & aFinishCommand return FinishCommandInternal(aFinishCommandParams); } -CHIP_ERROR CommandSender::AddRequestDataInternal(const CommandPathParams & aCommandPath, DataModel::EncodableToTLV & aEncodable, +CHIP_ERROR CommandSender::AddRequestDataInternal(const CommandPathParams & aCommandPath, + const DataModel::EncodableToTLV & aEncodable, AddRequestDataParameters & aAddRequestDataParams) { PrepareCommandParameters prepareCommandParams(aAddRequestDataParams); diff --git a/src/app/CommandSender.h b/src/app/CommandSender.h index e631ed2b84f849..862b1252208d88 100644 --- a/src/app/CommandSender.h +++ b/src/app/CommandSender.h @@ -390,7 +390,7 @@ class CommandSender final : public Messaging::ExchangeDelegate * invoke interaction. If the caller wants that certainty they should call the templated * version of AddRequestData. */ - CHIP_ERROR AddRequestData(const CommandPathParams & aCommandPath, DataModel::EncodableToTLV & aEncodable, + CHIP_ERROR AddRequestData(const CommandPathParams & aCommandPath, const DataModel::EncodableToTLV & aEncodable, AddRequestDataParameters & aAddRequestDataParams) { return AddRequestDataInternal(aCommandPath, aEncodable, aAddRequestDataParams); @@ -473,7 +473,8 @@ class CommandSender final : public Messaging::ExchangeDelegate #endif // CONFIG_BUILD_FOR_HOST_UNIT_TEST private: - CHIP_ERROR AddRequestDataInternal(const CommandPathParams & aCommandPath, DataModel::EncodableToTLV & aEncodable, + CHIP_ERROR AddRequestDataInternal(const CommandPathParams & aCommandPath, + const DataModel::EncodableToTLV & aEncodable, AddRequestDataParameters & aAddRequestDataParams); CHIP_ERROR FinishCommandInternal(FinishCommandParameters & aFinishCommandParams);