Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Jun 18, 2021
1 parent bbf3661 commit 9294de0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
6 changes: 4 additions & 2 deletions src/app/InteractionModelEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ CHIP_ERROR InteractionModelEngine::NewWriteClient(WriteClient ** const apWriteCl
{
*apWriteClient = nullptr;

for (auto & writeClient : mWriteClients) {
if (!writeClient.IsFree()) {
for (auto & writeClient : mWriteClients)
{
if (!writeClient.IsFree())
{
continue;
}

Expand Down
1 change: 0 additions & 1 deletion src/app/WriteHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* limitations under the License.
*/


#include <app/InteractionModelEngine.h>
#include <app/MessageDef/EventPath.h>
#include <app/WriteHandler.h>
Expand Down
1 change: 0 additions & 1 deletion src/app/WriteHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* limitations under the License.
*/


#pragma once
#include <app/AttributePathParams.h>
#include <app/InteractionModelDelegate.h>
Expand Down
7 changes: 3 additions & 4 deletions src/app/tests/TestWriteInteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ namespace {
chip::System::Layer gSystemLayer;
chip::SecureSessionMgr gSessionManager;
chip::Messaging::ExchangeManager gExchangeManager;
chip::TransportMgr <chip::Transport::UDP> gTransportManager;
chip::TransportMgr<chip::Transport::UDP> gTransportManager;
chip::secure_channel::MessageCounterManager gMessageCounterManager;
chip::Transport::AdminId gAdminId = 0;
}
} // namespace
namespace chip {
namespace app {
class TestWriteInteraction
Expand Down Expand Up @@ -261,8 +261,7 @@ void InitializeChip(nlTestSuite * apSuite)

gSystemLayer.Init(nullptr);

err = gSessionManager.Init(chip::kTestDeviceNodeId, &gSystemLayer, &gTransportManager, &admins,
&gMessageCounterManager);
err = gSessionManager.Init(chip::kTestDeviceNodeId, &gSystemLayer, &gTransportManager, &admins, &gMessageCounterManager);
NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR);

err = gExchangeManager.Init(&gSessionManager);
Expand Down

0 comments on commit 9294de0

Please sign in to comment.