Revision: 14886
          http://sourceforge.net/p/skim-app/code/14886
Author:   hofman
Date:     2025-01-27 10:00:55 +0000 (Mon, 27 Jan 2025)
Log Message:
-----------
use local variable to avoid calling atomic accessor twice

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

Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m   2025-01-25 18:01:24 UTC (rev 14885)
+++ trunk/SKPDFSynchronizer.m   2025-01-27 10:00:55 UTC (rev 14886)
@@ -189,7 +189,7 @@
         if (theSyncFileName && [[NSFileManager defaultManager] 
fileExistsAtPath:theSyncFileName]) {
             NSDate *currentModDate = [self lastModDate];
             NSDate *modDate = nil;
-            [[NSURL fileURLWithPath:syncFileName isDirectory:NO] 
getResourceValue:&modDate forKey:NSURLAttributeModificationDateKey error:NULL];
+            [[NSURL fileURLWithPath:theSyncFileName isDirectory:NO] 
getResourceValue:&modDate forKey:NSURLAttributeModificationDateKey error:NULL];
         
             if (currentModDate && [modDate compare:currentModDate] != 
NSOrderedDescending)
                 rv = YES;

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