Revision: 13891
          http://sourceforge.net/p/skim-app/code/13891
Author:   hofman
Date:     2023-12-11 17:52:08 +0000 (Mon, 11 Dec 2023)
Log Message:
-----------
type-cast void * for NSMapGet and NSMapRemove

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2023-12-11 17:47:57 UTC (rev 13890)
+++ trunk/SKMainWindowController.m      2023-12-11 17:52:08 UTC (rev 13891)
@@ -1380,8 +1380,8 @@
     [[self windowControllerForNote:note] close];
     
     if ([note hasNoteText])
-        NSMapRemove(rowHeights, [note noteText]);
-    NSMapRemove(rowHeights, note);
+        NSMapRemove(rowHeights, (void *)[note noteText]);
+    NSMapRemove(rowHeights, (void *)note);
     
     // Stop observing the removed notes
     [self stopObservingNotes:@[note]];
@@ -2820,9 +2820,9 @@
             
             if (mwcFlags.autoResizeNoteRows) {
                 if ([keyPath isEqualToString:SKNPDFAnnotationStringKey])
-                    NSMapRemove(rowHeights, note);
+                    NSMapRemove(rowHeights, (void *)note);
                 if ([keyPath isEqualToString:SKNPDFAnnotationTextKey])
-                    NSMapRemove(rowHeights, [note noteText]);
+                    NSMapRemove(rowHeights, (void *)[note noteText]);
             }
             if ([self notesNeedReloadForKey:keyPath]) {
                 [self performSelectorOnce:@selector(reloadNotesTable) 
afterDelay:0.0];

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2023-12-11 17:47:57 UTC (rev 13890)
+++ trunk/SKMainWindowController_UI.m   2023-12-11 17:52:08 UTC (rev 13891)
@@ -1151,7 +1151,7 @@
         SKNoteOutlineView *ov = rightSideController.noteOutlineView;
         NSMutableIndexSet *indexes = [NSMutableIndexSet indexSet];
         for (id item in items) {
-            NSMapRemove(rowHeights, item);
+            NSMapRemove(rowHeights, (void *)item);
             NSInteger row = [ov rowForItem:item];
             if (row != -1)
                 [indexes addIndex:row];

Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m   2023-12-11 17:47:57 UTC (rev 13890)
+++ trunk/SKPDFSynchronizer.m   2023-12-11 17:52:08 UTC (rev 13891)
@@ -507,7 +507,7 @@
     if (filename == NULL) {
         for (NSString *fn in filenames) {
             if ([[fn lastPathComponent] caseInsensitiveCompare:[file 
lastPathComponent]] == NSOrderedSame) {
-                filename = NSMapGet(filenames, (void *)file);
+                filename = (char *)NSMapGet(filenames, (void *)file);
                 break;
             }
         }

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