Revision: 28602
http://sourceforge.net/p/bibdesk/svn/28602
Author: hofman
Date: 2024-01-14 15:50:15 +0000 (Sun, 14 Jan 2024)
Log Message:
-----------
no need for double autoreleasepool
Modified Paths:
--------------
trunk/bibdesk/BDSKFileSearchIndex.m
Modified: trunk/bibdesk/BDSKFileSearchIndex.m
===================================================================
--- trunk/bibdesk/BDSKFileSearchIndex.m 2024-01-14 15:31:14 UTC (rev 28601)
+++ trunk/bibdesk/BDSKFileSearchIndex.m 2024-01-14 15:50:15 UTC (rev 28602)
@@ -431,23 +431,20 @@
- (void)indexFilesForItems:(NSArray *)items
numberPreviouslyIndexed:(double)numberIndexed
{
// Use a local pool since initial indexing can use a fair amount of
memory, and it's not released until the thread's run loop starts
- @autoreleasepool {
- double totalObjectCount = numberIndexed + [items count];
-
- for (id anObject in items) {
- @autoreleasepool {
- if ([self shouldKeepRunning] == NO) break;
- [self indexFileURLs:[anObject objectForKey:BDSKBibItemURLsKey]
forIdentifierURL:[anObject objectForKey:BDSKBibItemIdentifierURLKey]];
- numberIndexed++;
- [self setProgressValue:(numberIndexed / totalObjectCount) *
100];
-
- [self didUpdate];
- }
+ double totalObjectCount = numberIndexed + [items count];
+
+ for (id anObject in items) {
+ @autoreleasepool {
+ if ([self shouldKeepRunning] == NO) break;
+ [self indexFileURLs:[anObject objectForKey:BDSKBibItemURLsKey]
forIdentifierURL:[anObject objectForKey:BDSKBibItemIdentifierURLKey]];
+ numberIndexed++;
+ [self setProgressValue:(numberIndexed / totalObjectCount) * 100];
+
+ [self didUpdate];
}
-
- // caller queues a final update
-
}
+
+ // caller queues a final update
}
#pragma mark Change notification handling
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit