From c059dc8ae8c7904fddce5de96dfacb0604ea75c0 Mon Sep 17 00:00:00 2001 From: Bi11 Date: Wed, 11 Jan 2017 02:07:48 +0800 Subject: [PATCH] remove hardcoded array capacity --- Sparkle/SUTouchBarProvider.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sparkle/SUTouchBarProvider.m b/Sparkle/SUTouchBarProvider.m index fe092d26..04689465 100644 --- a/Sparkle/SUTouchBarProvider.m +++ b/Sparkle/SUTouchBarProvider.m @@ -30,7 +30,7 @@ return self; indentifier = [NSString stringWithFormat:@"%@.%@", SUBundleIdentifier, anIdentifier]; - touchBarItems = [NSMutableArray arrayWithCapacity:6]; + touchBarItems = [NSMutableArray array]; touchBar = [[NSTouchBar alloc] init]; touchBar.defaultItemIdentifiers = @[indentifier,];