macosx: Split up asserts for insert item in toolbar delegate

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
This commit is contained in:
Claudio Cambra 2024-04-20 14:39:50 +08:00 committed by Felix Paul Kühne
parent 4ae6cdb35d
commit a49403442e
1 changed files with 3 additions and 1 deletions

View File

@ -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) {