Revision: 28861
http://sourceforge.net/p/bibdesk/svn/28861
Author: hofman
Date: 2024-04-24 21:30:54 +0000 (Wed, 24 Apr 2024)
Log Message:
-----------
avoid retains in fast enumeration
Modified Paths:
--------------
trunk/bibdesk/BDSKCompletionManager.m
Modified: trunk/bibdesk/BDSKCompletionManager.m
===================================================================
--- trunk/bibdesk/BDSKCompletionManager.m 2024-04-24 21:28:02 UTC (rev
28860)
+++ trunk/bibdesk/BDSKCompletionManager.m 2024-04-24 21:30:54 UTC (rev
28861)
@@ -239,11 +239,10 @@
return @[];
NSSet *strings = [autoCompletionDict objectForKey:entry];
- NSString *string = nil;
NSMutableArray *completions = [NSMutableArray array];
BOOL isAuthor = [entry isEqualToString:BDSKAuthorString];
- for (string in strings) {
+ for (NSString *string in strings) {
if ([[string stringByRemovingCurlyBraces]
hasCaseInsensitivePrefix:matchString] ||
(isAuthor && [[lastNamesDict objectForKey:string]
hasCaseInsensitivePrefix:matchString]))
[completions addObject:string];
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