Skip to content

Commit 7014997

Browse files
committed
fix MTRDevice_Concrete block-scoped pointer types
1 parent cb9ffea commit 7014997

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/darwin/Framework/CHIP/MTRDevice_Concrete.mm

+3-3
Original file line numberDiff line numberDiff line change
@@ -2873,7 +2873,7 @@ static BOOL AttributeHasChangesOmittedQuality(MTRAttributePath * attributePath)
28732873
}
28742874
*stop = NO;
28752875
}];
2876-
[workItem setReadyHandler:^(MTRDevice * self, NSInteger retryCount, MTRAsyncWorkCompletionBlock completion) {
2876+
[workItem setReadyHandler:^(MTRDevice_Concrete * self, NSInteger retryCount, MTRAsyncWorkCompletionBlock completion) {
28772877
// Sanity check
28782878
if (readRequests.count == 0) {
28792879
MTR_LOG_ERROR("Read attribute work item [%llu] contained no read requests", workItemID);
@@ -3014,7 +3014,7 @@ - (void)writeAttributeWithEndpointID:(NSNumber *)endpointID
30143014
*isDuplicate = NO;
30153015
*stop = YES;
30163016
}];
3017-
[workItem setReadyHandler:^(MTRDevice * self, NSInteger retryCount, MTRAsyncWorkCompletionBlock completion) {
3017+
[workItem setReadyHandler:^(MTRDevice_Concrete * self, NSInteger retryCount, MTRAsyncWorkCompletionBlock completion) {
30183018
MTRBaseDevice * baseDevice = [self newBaseDevice];
30193019
// Make sure to use writeRequests here, because that's what our batching
30203020
// handler will modify as needed.
@@ -3148,7 +3148,7 @@ - (void)_invokeCommandWithEndpointID:(NSNumber *)endpointID
31483148
*isDuplicate = NO;
31493149
*stop = YES;
31503150
}];
3151-
[workItem setReadyHandler:^(MTRDevice * self, NSInteger retryCount, MTRAsyncWorkCompletionBlock workCompletion) {
3151+
[workItem setReadyHandler:^(MTRDevice_Concrete * self, NSInteger retryCount, MTRAsyncWorkCompletionBlock workCompletion) {
31523152
auto workDone = ^(NSArray<NSDictionary<NSString *, id> *> * _Nullable values, NSError * _Nullable error) {
31533153
dispatch_async(queue, ^{
31543154
completion(values, error);

0 commit comments

Comments
 (0)