Forráskód Böngészése

Fixed strict prototype warnings (#231)

Colin Humber 7 éve
szülő
commit
a8cdac1872

+ 1 - 1
Classes/ExplorerInterface/FLEXExplorerViewController.h

@@ -21,7 +21,7 @@
 ///
 /// If a tool is already presented, this method simply dismisses it and calls the completion block.
 /// If no tool is presented, @code future() @endcode is presented and the completion block is called.
-- (void)toggleToolWithViewControllerProvider:(UIViewController *(^)())future completion:(void(^)())completion;
+- (void)toggleToolWithViewControllerProvider:(UIViewController *(^)(void))future completion:(void(^)(void))completion;
 
 // Keyboard shortcut helpers
 

+ 2 - 2
Classes/ExplorerInterface/FLEXExplorerViewController.m

@@ -833,7 +833,7 @@ typedef NS_ENUM(NSUInteger, FLEXExplorerMode) {
     return self.previousKeyWindow != nil;
 }
 
-- (void)toggleToolWithViewControllerProvider:(UIViewController *(^)())future completion:(void(^)())completion
+- (void)toggleToolWithViewControllerProvider:(UIViewController *(^)(void))future completion:(void(^)(void))completion
 {
     if (self.presentedViewController) {
         [self resignKeyAndDismissViewControllerAnimated:YES completion:completion];
@@ -867,7 +867,7 @@ typedef NS_ENUM(NSUInteger, FLEXExplorerMode) {
     [self toggleViewsToolWithCompletion:nil];
 }
 
-- (void)toggleViewsToolWithCompletion:(void(^)())completion
+- (void)toggleViewsToolWithCompletion:(void(^)(void))completion
 {
     [self toggleToolWithViewControllerProvider:^UIViewController *{
         NSArray<UIView *> *allViews = [self allViewsInHierarchy];