@@ -29,11 +29,11 @@ #import "PasswordGenerator.h" #import "NewPasswordGenerator.h" #import "LegacyPasswordGenerator.h" @interface ShowDetailsController () -- (void)_generateWithCallback: (void(^)(NSMutableString*))block; +- (void)_generateWithCallback: (void (^)(NSMutableString *))block; - (void)_generateAndCopy; - (void)_generateAndShow; @end static void @@ -84,18 +84,18 @@ - (void)viewDidAppear: (BOOL)animated { [self.passphraseField becomeFirstResponder]; } -- (BOOL)textFieldShouldReturn: (UITextField*)textField +- (BOOL)textFieldShouldReturn: (UITextField *)textField { [textField resignFirstResponder]; return NO; } -- (void)tableView: (UITableView*)tableView - didSelectRowAtIndexPath: (NSIndexPath*)indexPath +- (void)tableView: (UITableView *)tableView + didSelectRowAtIndexPath: (NSIndexPath *)indexPath { [self.passphraseField resignFirstResponder]; [tableView deselectRowAtIndexPath: indexPath animated: YES]; @@ -159,11 +159,11 @@ clearNSMutableString(password); }]; }]; } -- (void)_generateWithCallback: (void(^)(NSMutableString*))block +- (void)_generateWithCallback: (void (^)(NSMutableString *))block { UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName: @"Main" bundle: nil]; UIViewController *activityController = [mainStoryboard @@ -193,13 +193,13 @@ of_explicit_memset(passphrase, 0, strlen(passphrase)); free(passphrase); } NSMutableString *password = [NSMutableString - stringWithUTF8String: (char*)generator.output]; + stringWithUTF8String: (char *)generator.output]; of_explicit_memset(generator.output, 0, - strlen((char*)generator.output)); + strlen((char *)generator.output)); activityController.view.hidden = YES; block(password); }); }