mirror of https://code.videolan.org/videolan/vlc
macosx: Split up asserts for insert item in toolbar delegate
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
This commit is contained in:
parent
4ae6cdb35d
commit
a49403442e
|
@ -201,7 +201,9 @@ NSString * const VLCLibraryWindowTrackingSeparatorToolbarItemIdentifier =
|
|||
|
||||
- (void)insertToolbarItem:(NSToolbarItem *)toolbarItem inFrontOf:(NSArray<NSToolbarItem *> *)items
|
||||
{
|
||||
NSParameterAssert(toolbarItem != nil && items != nil && toolbarItem.itemIdentifier.length > 0);
|
||||
NSParameterAssert(toolbarItem != nil);
|
||||
NSParameterAssert(items != nil);
|
||||
NSParameterAssert(toolbarItem.itemIdentifier.length > 0);
|
||||
|
||||
const NSInteger toolbarItemIndex = [self.toolbar.items indexOfObject:toolbarItem];
|
||||
if (toolbarItemIndex != NSNotFound) {
|
||||
|
|
Loading…
Reference in New Issue