Skip to content

Commit 61c1c1f

Browse files
restyled-commitserwinpan1
authored andcommitted
Restyled by clang-format
1 parent d39c234 commit 61c1c1f

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

examples/chef/common/clusters/audio-output/AudioOutputManager.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ bool AudioOutputManager::HandleRenameOutput(const uint8_t & index, const chip::C
6262
{
6363
if (output.index == index)
6464
{
65-
const size_t len = std::min(mNameLenMax, name.size());
65+
const size_t len = std::min(mNameLenMax, name.size());
6666
memcpy(mOutputName[index], name.data(), len);
6767
output.name = mOutputName[index];
6868
return true;
@@ -78,7 +78,7 @@ bool AudioOutputManager::HandleSelectOutput(const uint8_t & index)
7878
{
7979
if (output.index == index)
8080
{
81-
mCurrentOutput = index;
81+
mCurrentOutput = index;
8282
return true;
8383
}
8484
}

examples/chef/common/clusters/audio-output/AudioOutputManager.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ class AudioOutputManager : public chip::app::Clusters::AudioOutput::Delegate
3232
CHIP_ERROR HandleGetOutputList(chip::app::AttributeValueEncoder & aEncoder) override;
3333
bool HandleRenameOutput(const uint8_t & index, const chip::CharSpan & name) override;
3434
bool HandleSelectOutput(const uint8_t & index) override;
35-
CHIP_ERROR GetOutputName(uint8_t index, chip::CharSpan & name) {
36-
if (index < mOutputs.size()) {
35+
CHIP_ERROR GetOutputName(uint8_t index, chip::CharSpan & name)
36+
{
37+
if (index < mOutputs.size())
38+
{
3739
name = chip::CharSpan::fromCharString(mOutputName[index]);
3840
return CHIP_NO_ERROR;
3941
}

examples/chef/common/clusters/channel/ChannelManager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void ChannelManager::HandleChangeChannel(CommandResponseHelper<ChangeChannelResp
186186

187187
bool ChannelManager::HandleChangeChannelByNumber(const uint16_t & majorNumber, const uint16_t & minorNumber)
188188
{
189-
uint16_t index = 0;
189+
uint16_t index = 0;
190190
for (auto const & channel : mChannels)
191191
{
192192
// verify if major & minor matches one of the channel from the list

examples/chef/common/clusters/media-input/MediaInputManager.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ bool MediaInputManager::HandleSelectInput(const uint8_t index)
6060
{
6161
if (input.index == index)
6262
{
63-
mCurrentInput = index;
63+
mCurrentInput = index;
6464
return true;
6565
}
6666
}
@@ -94,7 +94,7 @@ bool MediaInputManager::HandleRenameInput(const uint8_t index, const chip::CharS
9494
{
9595
if (input.index == index)
9696
{
97-
const size_t len = std::min(mNameLenMax, name.size());
97+
const size_t len = std::min(mNameLenMax, name.size());
9898
memcpy(mInputName[index], name.data(), len);
9999
input.name = mInputName[index];
100100
return true;

examples/chef/common/clusters/media-input/MediaInputManager.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ class MediaInputManager : public chip::app::Clusters::MediaInput::Delegate
3535
bool HandleShowInputStatus() override;
3636
bool HandleHideInputStatus() override;
3737
bool HandleRenameInput(const uint8_t index, const chip::CharSpan & name) override;
38-
CHIP_ERROR GetInputName(uint8_t index, chip::CharSpan & name) {
39-
if (index < mInputs.size()) {
38+
CHIP_ERROR GetInputName(uint8_t index, chip::CharSpan & name)
39+
{
40+
if (index < mInputs.size())
41+
{
4042
name = chip::CharSpan::fromCharString(mInputName[index]);
4143
return CHIP_NO_ERROR;
4244
}

0 commit comments

Comments
 (0)