Skip to content

Commit 180c8ae

Browse files
authored
Pass the enabled attributes by value (project-chip#40517)
1 parent 56deee7 commit 180c8ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/server-cluster/AttributeListBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace app {
2323

2424
CHIP_ERROR AttributeListBuilder::Append(Span<const DataModel::AttributeEntry> mandatoryAttributes,
2525
Span<const DataModel::AttributeEntry> optionalAttributes,
26-
const AttributeSet & enabledOptionalAttributes)
26+
AttributeSet enabledOptionalAttributes)
2727
{
2828
// determine how much data to append. This should only be called if generally we have something to append
2929
size_t append_size = mandatoryAttributes.size();

src/app/server-cluster/AttributeListBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class AttributeListBuilder
4545
/// - optionalAttributes IF AND ONLY IF enabledOptionalAttributes is set for them
4646
/// - GlobalAttributes() (all of them)
4747
CHIP_ERROR Append(Span<const DataModel::AttributeEntry> mandatoryAttributes,
48-
Span<const DataModel::AttributeEntry> optionalAttributes, const AttributeSet & enabledOptionalAttributes);
48+
Span<const DataModel::AttributeEntry> optionalAttributes, AttributeSet enabledOptionalAttributes);
4949

5050
struct OptionalAttributeEntry
5151
{

0 commit comments

Comments
 (0)