summaryrefslogtreecommitdiffstats
path: root/macosx/HBUtilities.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBUtilities.m')
-rw-r--r--macosx/HBUtilities.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBUtilities.m b/macosx/HBUtilities.m
index c40d14829..5794a712b 100644
--- a/macosx/HBUtilities.m
+++ b/macosx/HBUtilities.m
@@ -225,18 +225,18 @@
{
if ([formatKey isEqualToString:@"{Source}"])
{
- if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"HBAutoNamingRemoveUnderscore"] boolValue])
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HBAutoNamingRemoveUnderscore"])
{
sourceName = [sourceName stringByReplacingOccurrencesOfString:@"_" withString:@" "];
}
- if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"HBAutoNamingRemovePunctuation"] boolValue])
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HBAutoNamingRemovePunctuation"])
{
sourceName = [sourceName stringByReplacingOccurrencesOfString:@"-" withString:@""];
sourceName = [sourceName stringByReplacingOccurrencesOfString:@"." withString:@""];
sourceName = [sourceName stringByReplacingOccurrencesOfString:@"," withString:@""];
sourceName = [sourceName stringByReplacingOccurrencesOfString:@";" withString:@""];
}
- if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"HBAutoNamingTitleCase"] boolValue])
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HBAutoNamingTitleCase"])
{
sourceName = [sourceName capitalizedString];
}