Skip to content

Commit 361e1e5

Browse files
committed
Slight move around based on pahole results, to try to make size differences a bit smaller
1 parent 4301461 commit 361e1e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/AttributeValueEncoder.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,20 +288,20 @@ class AttributeValueEncoder
288288
*/
289289
void EnsureListEnded();
290290

291-
bool mTriedEncode = false;
292291
AttributeReportIBs::Builder & mAttributeReportIBsBuilder;
293292
const Access::SubjectDescriptor mSubjectDescriptor;
294293
ConcreteDataAttributePath mPath;
295294
DataVersion mDataVersion;
295+
bool mTriedEncode = false;
296296
bool mIsFabricFiltered = false;
297297
// mEncodingInitialList is true if we're encoding a list and we have not
298298
// started chunking it yet, so we're encoding a single attribute report IB
299299
// for the whole list, not one per item.
300300
bool mEncodingInitialList = false;
301301
// mEncodedAtLeastOneListItem becomes true once we successfully encode a list item.
302302
bool mEncodedAtLeastOneListItem = false;
303-
AttributeEncodeState mEncodeState;
304303
ListIndex mCurrentEncodingListIndex = kInvalidListIndex;
304+
AttributeEncodeState mEncodeState;
305305
};
306306

307307
} // namespace app

src/app/ConcreteAttributePath.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ struct ConcreteReadAttributePath : public ConcreteAttributePath
101101
*/
102102
struct ConcreteDataAttributePath : public ConcreteAttributePath
103103
{
104-
enum class ListOperation
104+
enum class ListOperation: uint8_t
105105
{
106106
NotList, // Path points to an attribute that isn't a list.
107107
ReplaceAll, // Path points to an attribute that is a list, indicating that the contents of the list should be replaced in

0 commit comments

Comments
 (0)