Revision: 13872
          http://sourceforge.net/p/skim-app/code/13872
Author:   hofman
Date:     2023-12-10 16:46:14 +0000 (Sun, 10 Dec 2023)
Log Message:
-----------
use removeAllObjects instead of NSResetMapTable

Modified Paths:
--------------
    trunk/SKMainWindowController.m
    trunk/SKMainWindowController_UI.m
    trunk/SKNotesDocument.m
    trunk/SKPDFSynchronizer.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2023-12-10 16:42:54 UTC (rev 13871)
+++ trunk/SKMainWindowController.m      2023-12-10 16:46:14 UTC (rev 13872)
@@ -1398,7 +1398,7 @@
         }
         [wcs release];
         
-        NSResetMapTable(rowHeights);
+        [rowHeights removeAllObjects];
         
         [self stopObservingNotes:notes];
 

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2023-12-10 16:42:54 UTC (rev 13871)
+++ trunk/SKMainWindowController_UI.m   2023-12-10 16:46:14 UTC (rev 13872)
@@ -809,7 +809,7 @@
 }
 
 - (void)resetNoteRowHeights {
-    NSResetMapTable(rowHeights);
+    [rowHeights removeAllObjects];
     [rightSideController.noteOutlineView noteHeightOfRowsChangedAnimating:YES];
 }
 
@@ -2038,7 +2038,7 @@
 
 - (void)handleNoteViewFrameDidChangeNotification:(NSNotification 
*)notification {
     if (mwcFlags.autoResizeNoteRows && [splitView isAnimating] == NO) {
-        NSResetMapTable(rowHeights);
+        [rowHeights removeAllObjects];
         [rightSideController.noteOutlineView 
noteHeightOfRowsChangedAnimating:NO];
     }
 }

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2023-12-10 16:42:54 UTC (rev 13871)
+++ trunk/SKNotesDocument.m     2023-12-10 16:46:14 UTC (rev 13872)
@@ -199,7 +199,7 @@
 
 - (void)windowDidResize:(NSNotification *)notification {
     if (ndFlags.autoResizeRows) {
-        NSResetMapTable(rowHeights);
+        [rowHeights removeAllObjects];
         [outlineView noteHeightOfRowsChangedAnimating:NO];
     }
 }
@@ -367,7 +367,7 @@
         }
         [self didChangeValueForKey:PAGES_KEY];
         
-        NSResetMapTable(rowHeights);
+        [rowHeights removeAllObjects];
         
         [self willChangeValueForKey:NOTES_KEY];
         [notes autorelease];
@@ -577,7 +577,7 @@
 }
 
 - (void)resetRowHeights {
-    NSResetMapTable(rowHeights);
+    [rowHeights removeAllObjects];
     [outlineView noteHeightOfRowsChangedAnimating:YES];
 }
 

Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m   2023-12-10 16:42:54 UTC (rev 13871)
+++ trunk/SKPDFSynchronizer.m   2023-12-10 16:46:14 UTC (rev 13872)
@@ -471,7 +471,7 @@
         const char *fileRep = synctex_scanner_get_synctex(scanner);
         [self setSyncFileName:[self sourceFileForFileName:[NSString 
stringWithUTF8String:fileRep] isTeX:NO removeQuotes:NO]];
         if (filenames) {
-            NSResetMapTable(filenames);
+            [filenames removeAllObjects];
         } else {
             NSPointerFunctions *keyPointerFunctions = [NSPointerFunctions 
pointerFunctionsWithOptions:NSPointerFunctionsStrongMemory | 
NSPointerFunctionsObjectPersonality];
             [keyPointerFunctions 
setIsEqualFunction:&caseInsensitiveStringEqual];

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