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

Modified Paths:
--------------
    trunk/PDFAnnotationMarkup_SKExtensions.m
    trunk/PDFAnnotation_SKExtensions.m

Modified: trunk/PDFAnnotationMarkup_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationMarkup_SKExtensions.m    2023-12-05 22:33:25 UTC (rev 
13838)
+++ trunk/PDFAnnotationMarkup_SKExtensions.m    2023-12-05 22:33:34 UTC (rev 
13839)
@@ -116,7 +116,7 @@
         }
     }
     if (lines == nil) {
-        [[self initWithBounds:NSZeroRect] release];
+        [[self init] release];
         self = nil;
     } else {
         self = [self initSkimNoteWithBounds:bounds forType:type];

Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m  2023-12-05 22:33:25 UTC (rev 13838)
+++ trunk/PDFAnnotation_SKExtensions.m  2023-12-05 22:33:34 UTC (rev 13839)
@@ -108,7 +108,7 @@
         [propertyList isKindOfClass:[NSData class]]) {
         self = [self initSkimNoteWithProperties:[NSKeyedUnarchiver 
unarchiveObjectWithData:propertyList]];
     } else {
-        [[self initWithBounds:NSZeroRect forType:@"" withProperties:nil] 
release];
+        [[self init] release];
         self = nil;
     }
     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