Revision: 7829
http://skim-app.svn.sourceforge.net/skim-app/?rev=7829&view=rev
Author: amaxwell
Date: 2012-12-10 18:22:20 +0000 (Mon, 10 Dec 2012)
Log Message:
-----------
Xcode 4 parentheses warning
Modified Paths:
--------------
trunk/SkimImporter/GetMetadataForFile.m
Modified: trunk/SkimImporter/GetMetadataForFile.m
===================================================================
--- trunk/SkimImporter/GetMetadataForFile.m 2012-12-10 18:21:31 UTC (rev
7828)
+++ trunk/SkimImporter/GetMetadataForFile.m 2012-12-10 18:22:20 UTC (rev
7829)
@@ -134,21 +134,21 @@
if (info) {
id value;
id pageWidth = [info objectForKey:@"PageWidth"], pageHeight =
[info objectForKey:@"PageHeight"];
- if (value = [info objectForKey:@"Title"])
+ if ((value = [info objectForKey:@"Title"]))
CFDictionarySetValue(attributes, kMDItemTitle, value);
- if (value = [info objectForKey:@"Author"])
+ if ((value = [info objectForKey:@"Author"]))
CFDictionarySetValue(attributes, kMDItemAuthors, value);
- if (value = [info objectForKey:@"Keywords"])
+ if ((value = [info objectForKey:@"Keywords"]))
CFDictionarySetValue(attributes, kMDItemKeywords, value);
- if (value = [info objectForKey:@"Creator"])
+ if ((value = [info objectForKey:@"Creator"]))
CFDictionarySetValue(attributes, kMDItemCreator, value);
- if (value = [info objectForKey:@"Producer"])
+ if ((value = [info objectForKey:@"Producer"]))
CFDictionarySetValue(attributes, kMDItemEncodingApplications,
value);
- if (value = [info objectForKey:@"Version"])
+ if ((value = [info objectForKey:@"Version"]))
CFDictionarySetValue(attributes, kMDItemVersion, value);
- if (value = [info objectForKey:@"Encrypted"])
+ if ((value = [info objectForKey:@"Encrypted"]))
CFDictionarySetValue(attributes, kMDItemSecurityMethod, [value
boolValue] ? @"Password Encrypted" : @"None");
- if (value = [info objectForKey:@"PageCount"])
+ if ((value = [info objectForKey:@"PageCount"]))
CFDictionarySetValue(attributes, kMDItemNumberOfPages, value);
if (pageWidth && pageHeight) {
CFDictionarySetValue(attributes, kMDItemPageWidth, pageWidth);
@@ -167,9 +167,9 @@
NSDictionary *fileAttributes = [[NSFileManager defaultManager]
attributesOfItemAtPath:(NSString *)pathToFile error:NULL];
NSDate *date;
- if (date = [fileAttributes objectForKey:NSFileModificationDate])
+ if ((date = [fileAttributes objectForKey:NSFileModificationDate]))
CFDictionarySetValue(attributes, kMDItemContentModificationDate,
date);
- if (date = [fileAttributes objectForKey:NSFileCreationDate])
+ if ((date = [fileAttributes objectForKey:NSFileCreationDate]))
CFDictionarySetValue(attributes, kMDItemContentCreationDate, date);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit