From 7f4308f9d4cc2f0b21baaa9638b86302907393e6 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 15 Jan 2025 12:23:21 -0500 Subject: [PATCH] This seems to save even more --- src/app/AttributeValueEncoder.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/AttributeValueEncoder.h b/src/app/AttributeValueEncoder.h index d22f269fa93b48..36133b0c5cea55 100644 --- a/src/app/AttributeValueEncoder.h +++ b/src/app/AttributeValueEncoder.h @@ -73,7 +73,8 @@ class AttributeValueEncoder // - we should figure where the extra const override is used // - we should try to avoid having such footguns. This list template-explosion seems // dangerous for flash. - CHIP_ERROR Encode(uint32_t const & aArg) const { return Encode((uint32_t &) aArg); } + inline CHIP_ERROR Encode(uint32_t const & aArg) const { return Encode((uint32_t) aArg); } + inline CHIP_ERROR Encode(uint32_t & aArg) const { return Encode((uint32_t) aArg); } private: AttributeValueEncoder & mAttributeValueEncoder;