Skip to content

Commit

Permalink
Remove some unnecessary nullable annotations. (#17799)
Browse files Browse the repository at this point in the history
Just need to initialize things in the initializer list instead of
default-constructing them as nil and then initializing them.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jan 26, 2024
1 parent f485207 commit 2617097
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class CHIPPersistentStorageDelegateBridge : public chip::PersistentStorageDelega
CHIP_ERROR SyncDeleteKeyValue(const char * key) override;

private:
_Nullable id<CHIPPersistentStorageDelegate> mDelegate;
_Nullable dispatch_queue_t mWorkQueue;
id<CHIPPersistentStorageDelegate> mDelegate;
dispatch_queue_t mWorkQueue;
};

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@

CHIPPersistentStorageDelegateBridge::CHIPPersistentStorageDelegateBridge(id<CHIPPersistentStorageDelegate> delegate)
: mDelegate(delegate)
, mWorkQueue(dispatch_queue_create("com.zigbee.chip.framework.storage.workqueue", DISPATCH_QUEUE_SERIAL))
{
mWorkQueue = dispatch_queue_create("com.zigbee.chip.framework.storage.workqueue", DISPATCH_QUEUE_SERIAL);
}

CHIPPersistentStorageDelegateBridge::~CHIPPersistentStorageDelegateBridge(void) {}
Expand Down

0 comments on commit 2617097

Please sign in to comment.