Revision: 15901
          http://sourceforge.net/p/skim-app/code/15901
Author:   hofman
Date:     2025-12-20 23:31:01 +0000 (Sat, 20 Dec 2025)
Log Message:
-----------
use dictionary literal

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2025-12-20 23:19:50 UTC (rev 15900)
+++ trunk/SKPDFView.m   2025-12-20 23:31:01 UTC (rev 15901)
@@ -934,18 +934,14 @@
 }
 
 - (NSDictionary *)displaySettings {
-    NSMutableDictionary *setup = [NSMutableDictionary dictionary];
-    
-    [setup setObject:[NSNumber numberWithBool:[self displaysPageBreaks]] 
forKey:DISPLAYSPAGEBREAKS_KEY];
-    [setup setObject:[NSNumber numberWithBool:[self displaysAsBook]] 
forKey:DISPLAYSASBOOK_KEY];
-    [setup setObject:[NSNumber numberWithInteger:[self displayBox]] 
forKey:DISPLAYBOX_KEY];
-    [setup setObject:[NSNumber numberWithDouble:[self scaleFactor]] 
forKey:SCALEFACTOR_KEY];
-    [setup setObject:[NSNumber numberWithBool:[self autoScales]] 
forKey:AUTOSCALES_KEY];
-    [setup setObject:[NSNumber numberWithInteger:[self displayMode]] 
forKey:DISPLAYMODE_KEY];
-    [setup setObject:[NSNumber numberWithInteger:[self displaysHorizontally] ? 
1 : 0] forKey:DISPLAYDIRECTION_KEY];
-    [setup setObject:[NSNumber numberWithBool:[self displaysRTL]] 
forKey:DISPLAYSRTL_KEY];
-    
-    return setup;
+    return @{DISPLAYSPAGEBREAKS_KEY: [NSNumber numberWithBool:[self 
displaysPageBreaks]],
+            DISPLAYSASBOOK_KEY:      [NSNumber numberWithBool:[self 
displaysAsBook]],
+            DISPLAYBOX_KEY:          [NSNumber numberWithInteger:[self 
displayBox]],
+            SCALEFACTOR_KEY:         [NSNumber numberWithDouble:[self 
scaleFactor]],
+            AUTOSCALES_KEY:          [NSNumber numberWithBool:[self 
autoScales]],
+            DISPLAYMODE_KEY:         [NSNumber numberWithInteger:[self 
displayMode]],
+            DISPLAYDIRECTION_KEY:    [NSNumber numberWithInteger:[self 
displaysHorizontally] ? 1 : 0],
+            DISPLAYSRTL_KEY:         [NSNumber numberWithBool:[self 
displaysRTL]]};
 }
 
 - (void)setDisplaySettings:(NSDictionary *)setup {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to