Skip to content

Commit d2336f3

Browse files
committed
restyled
1 parent c05bf9c commit d2336f3

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

src/app/ReadClient.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,6 @@ class ReadClient : public Messaging::ExchangeDelegate
682682
kReservedSizeForEndOfContainer + kReservedSizeForIMRevision + kReservedSizeForEndOfContainer;
683683
};
684684

685-
}; // namespace app
686-
}; // namespace chip
685+
}; // namespace app
686+
}; // namespace chip
687687
#endif // CHIP_CONFIG_ENABLE_READ_CLIENT

src/app/ReadHandler.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ class ReadHandler : public Messaging::ExchangeDelegate
131131
/*
132132
* Called after a subscription has been fully established.
133133
*/
134-
virtual void OnSubscriptionEstablished(ReadHandler & aReadHandler) {};
134+
virtual void OnSubscriptionEstablished(ReadHandler & aReadHandler){};
135135

136136
/*
137137
* Called right before a subscription is about to get terminated. This is only called on subscriptions that were terminated
138138
* after they had been fully established (and therefore had called OnSubscriptionEstablished).
139139
* OnSubscriptionEstablishment().
140140
*/
141-
virtual void OnSubscriptionTerminated(ReadHandler & aReadHandler) {};
141+
virtual void OnSubscriptionTerminated(ReadHandler & aReadHandler){};
142142
};
143143

144144
/*

src/app/WriteClient.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ class WriteClient : public Messaging::ExchangeDelegate
132132
*/
133133
WriteClient(Messaging::ExchangeManager * apExchangeMgr, Callback * apCallback, const Optional<uint16_t> & aTimedWriteTimeoutMs,
134134
bool aSuppressResponse = false) :
135-
mpExchangeMgr(apExchangeMgr), mExchangeCtx(*this), mpCallback(apCallback), mTimedWriteTimeoutMs(aTimedWriteTimeoutMs),
135+
mpExchangeMgr(apExchangeMgr),
136+
mExchangeCtx(*this), mpCallback(apCallback), mTimedWriteTimeoutMs(aTimedWriteTimeoutMs),
136137
mSuppressResponse(aSuppressResponse)
137138
{
138139
assertChipStackLockedByCurrentThread();
@@ -141,8 +142,8 @@ class WriteClient : public Messaging::ExchangeDelegate
141142
#if CONFIG_BUILD_FOR_HOST_UNIT_TEST
142143
WriteClient(Messaging::ExchangeManager * apExchangeMgr, Callback * apCallback, const Optional<uint16_t> & aTimedWriteTimeoutMs,
143144
uint16_t aReservedSize) :
144-
mpExchangeMgr(apExchangeMgr), mExchangeCtx(*this), mpCallback(apCallback), mTimedWriteTimeoutMs(aTimedWriteTimeoutMs),
145-
mReservedSize(aReservedSize)
145+
mpExchangeMgr(apExchangeMgr),
146+
mExchangeCtx(*this), mpCallback(apCallback), mTimedWriteTimeoutMs(aTimedWriteTimeoutMs), mReservedSize(aReservedSize)
146147
{
147148
assertChipStackLockedByCurrentThread();
148149
}

src/app/reporting/ReportSchedulerImpl.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class ReportSchedulerImpl : public ReportScheduler
7979
* solely based on its ReadHandler's state. Therefore, no synchronization action on the ICDState is needed in this
8080
* implementation.
8181
*/
82-
void OnTransitionToIdle() override {};
82+
void OnTransitionToIdle() override{};
8383

8484
/**
8585
* @brief When the ICD transitions to Active mode, this implementation will trigger a report emission on each ReadHandler that
@@ -94,13 +94,13 @@ class ReportSchedulerImpl : public ReportScheduler
9494
* @brief Similar to the OnTransitionToIdle() method, this implementation does not attempt any synchronization on ICD events,
9595
* therefore no action is needed on the ICDModeChange() method.
9696
*/
97-
void OnICDModeChange() override {};
97+
void OnICDModeChange() override{};
9898

9999
/**
100100
* @brief This implementation does not attempt any synchronization on this ICD event, therefore no action is needed on
101101
* ICDEnterIdleMode()
102102
*/
103-
void OnEnterIdleMode() override {};
103+
void OnEnterIdleMode() override{};
104104

105105
// ReadHandlerObserver
106106

src/app/tests/TestReadInteraction.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,8 @@ TEST_F(TestReadInteraction, TestSetDirtyBetweenChunks)
12841284
public:
12851285
DirtyingMockDelegate(AttributePathParams (&aReadPaths)[2], int & aNumAttributeResponsesWhenSetDirty,
12861286
int & aNumArrayItemsWhenSetDirty) :
1287-
mReadPaths(aReadPaths), mNumAttributeResponsesWhenSetDirty(aNumAttributeResponsesWhenSetDirty),
1287+
mReadPaths(aReadPaths),
1288+
mNumAttributeResponsesWhenSetDirty(aNumAttributeResponsesWhenSetDirty),
12881289
mNumArrayItemsWhenSetDirty(aNumArrayItemsWhenSetDirty)
12891290
{}
12901291

0 commit comments

Comments
 (0)