diff options
author | ritsuka <[email protected]> | 2015-05-30 07:17:22 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-05-30 07:17:22 +0000 |
commit | 2837048a59ac5beab0b3428ca89c86857765de0a (patch) | |
tree | 15417d195f7223d85fac22560479717dfda31101 /macosx/HBTreeNode.h | |
parent | 93fb333304b2493a50623b04caac95b53eca3240 (diff) |
MacGui: add nullability annotations to the headers and use weak where is possible.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7244 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBTreeNode.h')
-rw-r--r-- | macosx/HBTreeNode.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/macosx/HBTreeNode.h b/macosx/HBTreeNode.h index b4c93f40e..be40a6125 100644 --- a/macosx/HBTreeNode.h +++ b/macosx/HBTreeNode.h @@ -6,6 +6,8 @@ #import <Foundation/Foundation.h> +NS_ASSUME_NONNULL_BEGIN + /** * Notify a delegate that something changed in the tree. * KVO observing a tree looked complicated an expensive, so this is a lightweight @@ -29,7 +31,7 @@ @property (nonatomic, readonly) NSMutableArray *children; @property (nonatomic) BOOL isLeaf; -@property (nonatomic, unsafe_unretained) id<HBTreeNodeDelegate> delegate; +@property (nonatomic, weak) id<HBTreeNodeDelegate> delegate; /** * Executes a given block using each object in the tree, starting with the root object and continuing through the tree to the last object. @@ -45,7 +47,7 @@ * * @return The index path whose corresponding value is equal to the preset. Returns nil if not found. */ -- (NSIndexPath *)indexPathOfObject:(id)obj; +- (nullable NSIndexPath *)indexPathOfObject:(id)obj; /** * Removes the object at the specified index path. @@ -62,3 +64,6 @@ - (void)removeObjectFromChildrenAtIndex:(NSUInteger)index; @end + +NS_ASSUME_NONNULL_END + |