Revision: 28792 http://sourceforge.net/p/bibdesk/svn/28792 Author: hofman Date: 2024-02-21 17:32:52 +0000 (Wed, 21 Feb 2024) Log Message: ----------- define variable inside autoreleasepool
Modified Paths: -------------- trunk/bibdesk/BDSKTemplateObjectProxy.m Modified: trunk/bibdesk/BDSKTemplateObjectProxy.m =================================================================== --- trunk/bibdesk/BDSKTemplateObjectProxy.m 2024-02-21 17:26:11 UTC (rev 28791) +++ trunk/bibdesk/BDSKTemplateObjectProxy.m 2024-02-21 17:32:52 UTC (rev 28792) @@ -130,7 +130,6 @@ BDSKTemplateFormat format = [template templateFormat]; id returnString = nil; NSMutableDictionary *parsedTemplates = [NSMutableDictionary dictionary]; - NSArray *parsedTemplate; NSInteger currentIndex = 0; if (format & BDSKTemplateFormatPlainText) { @@ -138,7 +137,7 @@ returnString = [NSMutableString stringWithString:@""]; for (pub in [self publications]){ @autoreleasepool { - parsedTemplate = [parsedTemplates objectForKey:[pub pubType]]; + NSArray *parsedTemplate = [parsedTemplates objectForKey:[pub pubType]]; if (parsedTemplate == nil) { if ([template templateURLForType:[pub pubType]]) { parsedTemplate = [BDSKTemplateParser arrayByParsingTemplateString:[template stringForType:[pub pubType]] isSubtemplate:NO]; @@ -165,7 +164,7 @@ returnString = [[NSMutableAttributedString alloc] init]; for (pub in [self publications]){ @autoreleasepool { - parsedTemplate = [parsedTemplates objectForKey:[pub pubType]]; + NSArray *parsedTemplate = [parsedTemplates objectForKey:[pub pubType]]; if (parsedTemplate == nil) { if ([template templateURLForType:[pub pubType]]) { parsedTemplate = [BDSKTemplateParser arrayByParsingTemplateAttributedString:[template attributedStringForType:[pub pubType]] isSubtemplate:NO]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit