Revision: 14180
          http://sourceforge.net/p/skim-app/code/14180
Author:   hofman
Date:     2024-04-04 22:46:27 +0000 (Thu, 04 Apr 2024)
Log Message:
-----------
make variable more local

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

Modified: trunk/SKSyncTeXParser.m
===================================================================
--- trunk/SKSyncTeXParser.m     2024-04-04 22:27:29 UTC (rev 14179)
+++ trunk/SKSyncTeXParser.m     2024-04-04 22:46:27 UTC (rev 14180)
@@ -65,12 +65,11 @@
 }
 
 - (void)enumerateSourceFilesUsingBlock:(void (^)(NSString *file))block {
-    const char *fileRep;
     synctex_node_p node = synctex_scanner_input(scanner);
     do {
-        if ((fileRep = synctex_scanner_get_name(scanner, 
synctex_node_tag(node)))) {
+        const char *fileRep = synctex_scanner_get_name(scanner, 
synctex_node_tag(node));
+        if (fileRep)
             block([NSString stringWithUTF8String:fileRep]);
-        }
     } while ((node = synctex_node_next(node)));
 }
 

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