From 845b78c12e85178a16a10c68fea0f420f4d8811b Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 29 Oct 2021 05:04:54 +0000 Subject: [PATCH] Restyled by clang-format --- src/app/EventManagement.cpp | 4 ++-- src/controller/CHIPDeviceController.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/EventManagement.cpp b/src/app/EventManagement.cpp index da1cda0ac7079e..78420052314470 100644 --- a/src/app/EventManagement.cpp +++ b/src/app/EventManagement.cpp @@ -277,7 +277,7 @@ CHIP_ERROR EventManagement::CalculateEventSize(EventLoggingDelegate * apDelegate CHIP_ERROR err = CHIP_NO_ERROR; System::PacketBufferTLVWriter writer; EventLoadOutContext ctxt = EventLoadOutContext(writer, apOptions->mpEventSchema->mPriority, - GetPriorityBuffer(apOptions->mpEventSchema->mPriority)->GetLastEventNumber()); + GetPriorityBuffer(apOptions->mpEventSchema->mPriority)->GetLastEventNumber()); System::PacketBufferHandle buf = System::PacketBufferHandle::New(kMaxEventSizeReserve); if (buf.IsNull()) { @@ -495,7 +495,7 @@ CHIP_ERROR EventManagement::LogEventPrivate(EventLoggingDelegate * apDelegate, E CircularEventBuffer checkpoint = *mpEventBuffer; CircularEventBuffer * buffer = nullptr; EventLoadOutContext ctxt = EventLoadOutContext(writer, aEventOptions.mpEventSchema->mPriority, - GetPriorityBuffer(aEventOptions.mpEventSchema->mPriority)->GetLastEventNumber()); + GetPriorityBuffer(aEventOptions.mpEventSchema->mPriority)->GetLastEventNumber()); Timestamp timestamp(Timestamp::Type::kSystem, System::SystemClock().GetMonotonicMilliseconds()); EventOptions opts = EventOptions(timestamp); // Start the event container (anonymous structure) in the circular buffer diff --git a/src/controller/CHIPDeviceController.cpp b/src/controller/CHIPDeviceController.cpp index 37e8b6b3343377..005c04e0978736 100644 --- a/src/controller/CHIPDeviceController.cpp +++ b/src/controller/CHIPDeviceController.cpp @@ -632,12 +632,12 @@ CHIP_ERROR DeviceCommissioner::Init(CommissionerInitParams params) mUdcTransportMgr = chip::Platform::New(); ReturnErrorOnFailure(mUdcTransportMgr->Init(Transport::UdpListenParameters(mSystemState->InetLayer()) .SetAddressType(Inet::IPAddressType::kIPv6) - .SetListenPort((uint16_t) (mUdcListenPort)) + .SetListenPort((uint16_t)(mUdcListenPort)) #if INET_CONFIG_ENABLE_IPV4 , Transport::UdpListenParameters(mSystemState->InetLayer()) .SetAddressType(Inet::IPAddressType::kIPv4) - .SetListenPort((uint16_t) (mUdcListenPort)) + .SetListenPort((uint16_t)(mUdcListenPort)) #endif // INET_CONFIG_ENABLE_IPV4 ));