aboutsummaryrefslogtreecommitdiff
path: root/AddressBook
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2011-09-09 22:00:25 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2011-09-09 22:00:25 +0000
commitf7f3e433ffb6b13ef738737e3b61f657191fd93f (patch)
tree164e7c462788460e5eb65e8523524e93dbd51d0b /AddressBook
parente4c73da9b59d0b558d96c31968cd0787622c2ef6 (diff)
[Author: dmaclach]
Clean up clang issues in GTM. The one in GTMABAddressBook is a weird one, that I'll try and file a bug on. R=thomasvl DELTA=92 (53 added, 6 deleted, 33 changed)
Diffstat (limited to 'AddressBook')
-rw-r--r--AddressBook/GTMABAddressBook.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/AddressBook/GTMABAddressBook.m b/AddressBook/GTMABAddressBook.m
index 637494b..6aa55e4 100644
--- a/AddressBook/GTMABAddressBook.m
+++ b/AddressBook/GTMABAddressBook.m
@@ -523,10 +523,10 @@ typedef struct {
#else // GTM_IPHONE_SDK
bool wasGood = YES;
if (data) {
- wasGood = [[[NSImage alloc] initWithData:data] autorelease] != nil;
+ NSImage *image = [[[NSImage alloc] initWithData:data] autorelease];
+ wasGood = image != nil;
}
- wasGood = wasGood && ABPersonSetImageData([self recordRef],
- (CFDataRef)data);
+ wasGood = wasGood && ABPersonSetImageData([self recordRef], (CFDataRef)data);
#endif // GTM_IPHONE_SDK
return wasGood ? YES : NO;
}
@@ -862,7 +862,9 @@ typedef struct {
// GTMABAddressBookTest.m
// Also, search for 6208390 below and fix the fast enumerator to actually
// be somewhat performant when this is fixed.
+#ifndef __clang_analyzer__
[value retain];
+#endif // __clang_analyzer__
}
}
return value;