Skip to content

Commit 0c17072

Browse files
Darwin: MTRDeviceControllerFactory cleanup (#32960)
* Darwin: MTRDeviceControllerFactory cleanup Internal methods don't need a named category Use ivars directly (most internal properties were never used as properties) Use MTR_DIRECT_MEMBERS for internals / implementation No need to pre-declare internal methods used only with the same file * Darwin: MTRDeviceControllerFactory cleanup (cont) Reorder ivars a little to group related things * Darwin: MTRDeviceControllerFactory cleanup (cont) Allocate C++ objects that are created at init time directly as ivars instead of as pointers. This avoids the need for manual cleanup code. * Fix darwin-framework-tool link issue * restyle
1 parent 12005f1 commit 0c17072

File tree

3 files changed

+113
-187
lines changed

3 files changed

+113
-187
lines changed

src/darwin/Framework/CHIP/MTRDeviceController.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ - (BOOL)startup:(MTRDeviceControllerStartupParamsInternal *)startupParams
551551
}
552552

553553
errorCode = chip::Credentials::SetSingleIpkEpochKey(
554-
_factory.groupData, fabricIdx, _operationalCredentialsDelegate->GetIPK(), compressedId);
554+
_factory.groupDataProvider, fabricIdx, _operationalCredentialsDelegate->GetIPK(), compressedId);
555555
if ([self checkForStartError:errorCode logMsg:kErrorIPKInit]) {
556556
return;
557557
}

0 commit comments

Comments
 (0)