Revision: 13991
http://sourceforge.net/p/skim-app/code/13991
Author: hofman
Date: 2023-12-26 00:10:05 +0000 (Tue, 26 Dec 2023)
Log Message:
-----------
no need for class factory
Modified Paths:
--------------
trunk/SKGroupedSearchResult.h
trunk/SKGroupedSearchResult.m
trunk/SKMainWindowController.m
trunk/SKNoteText.m
Modified: trunk/SKGroupedSearchResult.h
===================================================================
--- trunk/SKGroupedSearchResult.h 2023-12-26 00:00:40 UTC (rev 13990)
+++ trunk/SKGroupedSearchResult.h 2023-12-26 00:10:05 UTC (rev 13991)
@@ -56,7 +56,6 @@
@property (weak, nonatomic, readonly) NSString *label;
@property (nonatomic, readonly) NSArray<PDFSelection *> *matches;
-+ (instancetype)groupedSearchResultWithPage:(PDFPage *)aPage
maxCount:(NSUInteger)aMaxCount;
- (instancetype)initWithPage:(PDFPage *)aPage maxCount:(NSUInteger)aMaxCount;
- (void)addMatch:(PDFSelection *)match;
Modified: trunk/SKGroupedSearchResult.m
===================================================================
--- trunk/SKGroupedSearchResult.m 2023-12-26 00:00:40 UTC (rev 13990)
+++ trunk/SKGroupedSearchResult.m 2023-12-26 00:10:05 UTC (rev 13991)
@@ -55,10 +55,6 @@
return keyPaths;
}
-+ (instancetype)groupedSearchResultWithPage:(PDFPage *)aPage
maxCount:(NSUInteger)aMaxCount {
- return [[self alloc] initWithPage:aPage maxCount:aMaxCount];
-}
-
- (instancetype)initWithPage:(PDFPage *)aPage maxCount:(NSUInteger)aMaxCount {
self = [super init];
if (self) {
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2023-12-26 00:00:40 UTC (rev 13990)
+++ trunk/SKMainWindowController.m 2023-12-26 00:10:05 UTC (rev 13991)
@@ -1944,7 +1944,7 @@
}
}
if (result == nil) {
- result = [SKGroupedSearchResult groupedSearchResultWithPage:page
maxCount:maxCount];
+ result = [[SKGroupedSearchResult alloc] initWithPage:page
maxCount:maxCount];
[groupedSearchResults insertObject:result atIndex:i + 1];
}
[result addMatch:instance];
Modified: trunk/SKNoteText.m
===================================================================
--- trunk/SKNoteText.m 2023-12-26 00:00:40 UTC (rev 13990)
+++ trunk/SKNoteText.m 2023-12-26 00:10:05 UTC (rev 13991)
@@ -53,7 +53,7 @@
return keyPaths;
}
-- (instancetype)initWithNote:(id)aNote {
+- (instancetype)initWithNote:(PDFAnnotation *)aNote {
self = [super init];
if (self) {
note = aNote;
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