Change to modern functions

This commit is contained in:
Michael
2024-07-04 21:45:56 -04:00
parent 07c0d3b6a0
commit e816a5ee8a
3 changed files with 8 additions and 9 deletions
+3 -3
View File
@@ -3394,12 +3394,12 @@ NSString * const IRCClientUserNicknameChangedNotification = @"IRCClientUserNickn
}
/* Prepare to toggle feature */
NSString *feature = stringIn.tokenIncludingQuotes.string;
NSString *feature = stringIn.tokenInsideQuotes.string;
BOOL applyToAll = [feature isEqualToString:@"-a"];
if (applyToAll) {
feature = stringIn.tokenIncludingQuotes.string;
feature = stringIn.tokenInsideQuotes.string;
}
NSDictionary *features = @{
@@ -12348,7 +12348,7 @@ NSString * const IRCClientUserNicknameChangedNotification = @"IRCClientUserNickn
return;
}
NSString *section1 = textMutable.tokenIncludingQuotes;
NSString *section1 = textMutable.tokenInsideQuotes;
NSString *section2 = textMutable.token;
NSString *section3 = textMutable.token;
NSString *section4 = textMutable.token;
@@ -425,8 +425,8 @@ NSString * const TPCResourceManagerScriptDocumentTypeExtensionWithoutPeriod = @
{
return [RZFileManager() replaceItemAtURL:destination
withItemAtURL:url
moveToDestination:NO
moveDestinationToTrash:YES];
options:(CSFileManagerOptionsMoveToTrash |
CSFileManagerOptionsRemoveIfExists)];
}
@end
@@ -844,8 +844,7 @@ typedef NSMutableDictionary <NSString *, TPCTheme *> *TPCThemeControllerThemeLi
[RZFileManager() replaceItemAtURL:temporaryURL
withItemAtURL:originalURL
moveToDestination:NO
moveDestinationToTrash:NO];
options:CSFileManagerOptionsRemoveIfExists];
}
- (void)presentCompatibilityAlert
@@ -1231,8 +1230,8 @@ typedef NSMutableDictionary <NSString *, TPCTheme *> *TPCThemeControllerThemeLi
if ([RZFileManager() replaceItemAtURL:destinationURL
withItemAtURL:sourceURL
moveToDestination:NO
moveDestinationToTrash:YES] == NO)
options:(CSFileManagerOptionsMoveToTrash |
CSFileManagerOptionsRemoveIfExists)] == NO)
{
[self cancelOperation];