Revision: 13838
          http://sourceforge.net/p/skim-app/code/13838
Author:   hofman
Date:     2023-12-05 22:33:25 +0000 (Tue, 05 Dec 2023)
Log Message:
-----------
I think we should be able to clean up PDFAnnotation by using init

Modified Paths:
--------------
    trunk/SkimNotes/PDFAnnotation_SKNExtensions.m

Modified: trunk/SkimNotes/PDFAnnotation_SKNExtensions.m
===================================================================
--- trunk/SkimNotes/PDFAnnotation_SKNExtensions.m       2023-12-05 17:52:41 UTC 
(rev 13837)
+++ trunk/SkimNotes/PDFAnnotation_SKNExtensions.m       2023-12-05 22:33:25 UTC 
(rev 13838)
@@ -260,10 +260,7 @@
         // generic, initalize the class for the type in the dictionary
         Class annotationClass = SKNAnnotationClassForType(type);
         
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-declarations"
-        self = [self initWithBounds:NSZeroRect];
-#pragma clang diagnostic pop
+        self = [self init];
         self = [annotationClass alloc];
     }
     
@@ -331,10 +328,7 @@
         // generic, initalize the class for the type in the dictionary
         Class annotationClass = SKNAnnotationClassForType(type);
         
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-declarations"
-        self = [self initWithBounds:NSZeroRect];
-#pragma clang diagnostic pop
+        self = [self init];
         self = [[annotationClass alloc] initSkimNoteWithProperties:dict];
         return self;
     }

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