From 8799ef6b67e18f13c57839d992fcabb2ceb39242 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Mon, 25 Feb 2019 21:23:56 +0100 Subject: [PATCH] Use of properties --- MacPass/MPIntegrationSettingsController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MacPass/MPIntegrationSettingsController.m b/MacPass/MPIntegrationSettingsController.m index 21030bd8..a081f42a 100644 --- a/MacPass/MPIntegrationSettingsController.m +++ b/MacPass/MPIntegrationSettingsController.m @@ -74,7 +74,7 @@ } - (void)willShowTab { - _hotKey = [DDHotKey hotKeyWithKeyData:[[NSUserDefaults standardUserDefaults] dataForKey:kMPSettingsKeyGlobalAutotypeKeyDataKey]]; + _hotKey = [DDHotKey hotKeyWithKeyData:[NSUserDefaults.standardUserDefaults dataForKey:kMPSettingsKeyGlobalAutotypeKeyDataKey]]; /* Change any invalid hotkeys to valid ones? */ self.hotKeyTextField.hotKey = self.hotKey; } @@ -86,7 +86,7 @@ return; // Nothing of interest has changed; } _hotKey = hotKey; - [[NSUserDefaults standardUserDefaults] setObject:self.hotKey.keyData forKey:kMPSettingsKeyGlobalAutotypeKeyDataKey]; + [NSUserDefaults.standardUserDefaults setObject:self.hotKey.keyData forKey:kMPSettingsKeyGlobalAutotypeKeyDataKey]; } #pragma mark -