Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
cecille and bzbarsky-apple authored Oct 25, 2023
1 parent be153d6 commit 20bea63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/AutoCommissioner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ CHIP_ERROR AutoCommissioner::SetCommissioningParameters(const CommissioningParam
// This buffer is statically allocated and is of size kMaxDefaultNtpSize.
auto span = MutableCharSpan(mDefaultNtp, kMaxDefaultNtpSize);
CopyCharSpanToMutableCharSpan(params.GetDefaultNTP().Value().Value(), span);
app::DataModel::Nullable<CharSpan> default_ntp(CharSpan(mDefaultNtp, size));
auto default_ntp = MakeNullable(CharSpan(mDefaultNtp, size));
mParams.SetDefaultNTP(default_ntp);
} else {
mParams.SetDefaultNTP(app::DataModel::Nullable<CharSpan>());
mParams.SetDefaultNTP(NullNullable);
}
}

Expand Down

0 comments on commit 20bea63

Please sign in to comment.