From ab8bba63d7de0c1ed5dcbec97697419e68852369 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 23 Feb 2024 20:55:04 +0000 Subject: [PATCH] Restyled by clang-format --- src/app/icd/client/CheckInHandler.cpp | 2 +- src/app/icd/client/CheckInHandler.h | 5 +++-- src/app/icd/client/DefaultCheckInDelegate.cpp | 2 +- src/app/icd/client/DefaultCheckInDelegate.h | 4 ++-- src/app/icd/client/RefreshKeySender.cpp | 9 +++++---- src/app/icd/client/RefreshKeySender.h | 6 +++--- 6 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/app/icd/client/CheckInHandler.cpp b/src/app/icd/client/CheckInHandler.cpp index 81ad2818315435..d12ded8fc4adbb 100644 --- a/src/app/icd/client/CheckInHandler.cpp +++ b/src/app/icd/client/CheckInHandler.cpp @@ -55,7 +55,7 @@ CHIP_ERROR CheckInHandler::Init(Messaging::ExchangeManager * exchangeManager, IC mpExchangeManager = exchangeManager; mpICDClientStorage = clientStorage; mpCheckInDelegate = delegate; - mpImEngine = engine; + mpImEngine = engine; return mpExchangeManager->RegisterUnsolicitedMessageHandlerForType(Protocols::SecureChannel::MsgType::ICD_CheckIn, this); } diff --git a/src/app/icd/client/CheckInHandler.h b/src/app/icd/client/CheckInHandler.h index 926f50ab81eab1..b2489aaac34812 100644 --- a/src/app/icd/client/CheckInHandler.h +++ b/src/app/icd/client/CheckInHandler.h @@ -41,7 +41,8 @@ class CheckInHandler : public Messaging::ExchangeDelegate, public Messaging::Uns { public: - CHIP_ERROR Init(Messaging::ExchangeManager * exchangeManager, ICDClientStorage * clientStorage, CheckInDelegate * delegate, InteractionModelEngine *engine); + CHIP_ERROR Init(Messaging::ExchangeManager * exchangeManager, ICDClientStorage * clientStorage, CheckInDelegate * delegate, + InteractionModelEngine * engine); void Shutdown(); CheckInHandler(); @@ -87,7 +88,7 @@ class CheckInHandler : public Messaging::ExchangeDelegate, public Messaging::Uns Messaging::ExchangeManager * mpExchangeManager = nullptr; CheckInDelegate * mpCheckInDelegate = nullptr; ICDClientStorage * mpICDClientStorage = nullptr; - InteractionModelEngine *mpImEngine = nullptr; + InteractionModelEngine * mpImEngine = nullptr; }; } // namespace app diff --git a/src/app/icd/client/DefaultCheckInDelegate.cpp b/src/app/icd/client/DefaultCheckInDelegate.cpp index 373406a658bb57..e967138310c0f4 100644 --- a/src/app/icd/client/DefaultCheckInDelegate.cpp +++ b/src/app/icd/client/DefaultCheckInDelegate.cpp @@ -28,7 +28,7 @@ CHIP_ERROR DefaultCheckInDelegate::Init(ICDClientStorage * storage, InteractionM { VerifyOrReturnError(storage != nullptr, CHIP_ERROR_INVALID_ARGUMENT); VerifyOrReturnError(mpStorage == nullptr, CHIP_ERROR_INCORRECT_STATE); - mpStorage = storage; + mpStorage = storage; mpImEngine = engine; return CHIP_NO_ERROR; } diff --git a/src/app/icd/client/DefaultCheckInDelegate.h b/src/app/icd/client/DefaultCheckInDelegate.h index 75848fd94cdd9b..5465994ef1bda0 100644 --- a/src/app/icd/client/DefaultCheckInDelegate.h +++ b/src/app/icd/client/DefaultCheckInDelegate.h @@ -39,8 +39,8 @@ class DefaultCheckInDelegate : public CheckInDelegate void OnKeyRefreshDone(RefreshKeySender * refreshKeySender, CHIP_ERROR error) override; private: - ICDClientStorage * mpStorage = nullptr; - InteractionModelEngine * mpImEngine = nullptr; + ICDClientStorage * mpStorage = nullptr; + InteractionModelEngine * mpImEngine = nullptr; }; } // namespace app diff --git a/src/app/icd/client/RefreshKeySender.cpp b/src/app/icd/client/RefreshKeySender.cpp index 14938ef4bc2c58..6dc85aa0e9b17c 100644 --- a/src/app/icd/client/RefreshKeySender.cpp +++ b/src/app/icd/client/RefreshKeySender.cpp @@ -28,10 +28,11 @@ namespace chip { namespace app { RefreshKeySender::RefreshKeySender(CheckInDelegate * checkInDelegate, const ICDClientInfo & icdClientInfo, - ICDClientStorage * icdClientStorage, InteractionModelEngine *engine, const RefreshKeyBuffer & refreshKeyBuffer) : - mpCheckInDelegate(checkInDelegate), mICDClientInfo(icdClientInfo), - mpICDClientStorage(icdClientStorage), mpImEngine(engine), mOnConnectedCallback(HandleDeviceConnected, this), - mOnConnectionFailureCallback(HandleDeviceConnectionFailure, this) + ICDClientStorage * icdClientStorage, InteractionModelEngine * engine, + const RefreshKeyBuffer & refreshKeyBuffer) : + mpCheckInDelegate(checkInDelegate), + mICDClientInfo(icdClientInfo), mpICDClientStorage(icdClientStorage), mpImEngine(engine), + mOnConnectedCallback(HandleDeviceConnected, this), mOnConnectionFailureCallback(HandleDeviceConnectionFailure, this) { mNewKey = refreshKeyBuffer; diff --git a/src/app/icd/client/RefreshKeySender.h b/src/app/icd/client/RefreshKeySender.h index d36879e9979ff1..a92345fbe8ab83 100644 --- a/src/app/icd/client/RefreshKeySender.h +++ b/src/app/icd/client/RefreshKeySender.h @@ -44,7 +44,7 @@ class RefreshKeySender typedef Crypto::SensitiveDataBuffer RefreshKeyBuffer; RefreshKeySender(CheckInDelegate * checkInDelegate, const ICDClientInfo & icdClientInfo, ICDClientStorage * icdClientStorage, - InteractionModelEngine *engine, const RefreshKeyBuffer & refreshKeyBuffer); + InteractionModelEngine * engine, const RefreshKeyBuffer & refreshKeyBuffer); /** * @brief Sets up a CASE session to the peer for re-registering a client with the peer when a key refresh is required to avoid @@ -82,10 +82,10 @@ class RefreshKeySender */ CHIP_ERROR RegisterClientWithNewKey(Messaging::ExchangeManager & exchangeMgr, const SessionHandle & sessionHandle); - CheckInDelegate * mpCheckInDelegate = nullptr; + CheckInDelegate * mpCheckInDelegate = nullptr; ICDClientInfo mICDClientInfo; ICDClientStorage * mpICDClientStorage = nullptr; - InteractionModelEngine *mpImEngine = nullptr; + InteractionModelEngine * mpImEngine = nullptr; RefreshKeyBuffer mNewKey; Callback::Callback mOnConnectedCallback; Callback::Callback mOnConnectionFailureCallback;