Skip to content

Commit

Permalink
Make function argument a reference, to avoid passing in struct data a…
Browse files Browse the repository at this point in the history
…round (#35950)

* Make function argument a reference, to avoid passing in struct data around

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
andy31415 and restyled-commits authored Oct 8, 2024
1 parent cec1887 commit 6ced852
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ bool operator==(const DataModel::DeviceTypeEntry & a, const EmberAfDeviceType &
/// - index == types.size() // i.e. not found or there is no next
///
/// hintWherePreviousMayBe represents a search hint where previous may exist.
unsigned FindNextDeviceTypeIndex(Span<const EmberAfDeviceType> types, const DataModel::DeviceTypeEntry previous,
unsigned FindNextDeviceTypeIndex(Span<const EmberAfDeviceType> types, const DataModel::DeviceTypeEntry & previous,
unsigned hintWherePreviousMayBe)
{
if (hintWherePreviousMayBe < types.size())
Expand Down

0 comments on commit 6ced852

Please sign in to comment.