Revision: 29070 http://sourceforge.net/p/bibdesk/svn/29070 Author: hofman Date: 2025-02-26 09:58:36 +0000 (Wed, 26 Feb 2025) Log Message: ----------- use CFBridgingRelease, reuse variable
Modified Paths: -------------- trunk/bibdesk/BDSKBibTeXParser.m Modified: trunk/bibdesk/BDSKBibTeXParser.m =================================================================== --- trunk/bibdesk/BDSKBibTeXParser.m 2025-02-25 15:48:49 UTC (rev 29069) +++ trunk/bibdesk/BDSKBibTeXParser.m 2025-02-26 09:58:36 UTC (rev 29070) @@ -583,7 +583,7 @@ } } if (theAuthor == nil) - theAuthor = [[BibAuthor alloc] initWithName:(__bridge NSString *)CFArrayGetValueAtIndex(names, i) publication:pub forField:field]; + theAuthor = [[BibAuthor alloc] initWithName:name publication:pub forField:field]; [authors addObject:theAuthor]; } CFRelease(names); @@ -685,23 +685,19 @@ CFStringRef nameString = NULL; if ((nameString = __BDCreateNameStringForComponent(alloc, theName, BTN_FIRST, encoding))) { - [parts setObject:(__bridge NSString *)nameString forKey:@"first"]; - CFRelease(nameString); + [parts setObject:CFBridgingRelease(nameString) forKey:@"first"]; } if ((nameString = __BDCreateNameStringForComponent(alloc, theName, BTN_VON, encoding))) { - [parts setObject:(__bridge NSString *)nameString forKey:@"von"]; - CFRelease(nameString); + [parts setObject:CFBridgingRelease(nameString) forKey:@"von"]; } if ((nameString = __BDCreateNameStringForComponent(alloc, theName, BTN_LAST, encoding))) { - [parts setObject:(__bridge NSString *)nameString forKey:@"last"]; - CFRelease(nameString); + [parts setObject:CFBridgingRelease(nameString) forKey:@"last"]; } if ((nameString = __BDCreateNameStringForComponent(alloc, theName, BTN_JR, encoding))) { - [parts setObject:(__bridge NSString *)nameString forKey:@"jr"]; - CFRelease(nameString); + [parts setObject:CFBridgingRelease(nameString) forKey:@"jr"]; } bt_free_name(theName); 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