Revision: 25423
http://sourceforge.net/p/bibdesk/svn/25423
Author: hofman
Date: 2021-01-17 22:28:55 +0000 (Sun, 17 Jan 2021)
Log Message:
-----------
Create immutable dictionary directly
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVImageIcon.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVImageIcon.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVImageIcon.m 2021-01-17
22:10:45 UTC (rev 25422)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVImageIcon.m 2021-01-17
22:28:55 UTC (rev 25423)
@@ -47,10 +47,7 @@
+ (void)initialize
{
FVINITIALIZE(FVImageIcon);
- CFMutableDictionaryRef dict = CFDictionaryCreateMutable(NULL, 0,
&kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
- CFDictionarySetValue(dict, kCGImageSourceShouldAllowFloat, kCFBooleanTrue);
- _imsrcOptions = CFDictionaryCreateCopy(NULL, dict);
- CFRelease(dict);
+ _imsrcOptions = CFDictionaryCreate(NULL, (const void
**)&kCGImageSourceShouldAllowFloat, (const void **)&kCFBooleanTrue, 1,
&kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
}
+ (BOOL)canInitWithURL:(NSURL *)aURL withType:(NSString *)type
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