adium 5534:94eac2b970cf: Add a cast here to silence a warning.
commits at adium.im
commits at adium.im
Wed Jun 5 03:57:02 UTC 2013
details: http://hg.adium.im/adium/rev/94eac2b970cf
revision: 5534:94eac2b970cf
branch: (none)
author: Frank Dowsett <wixardy at adium.im>
date: Mon Jun 03 20:23:21 2013 -0400
Add a cast here to silence a warning.
diffs (12 lines):
diff -r a7ca86f2f35c -r 94eac2b970cf UnitTests/TestStringAdditions.m
--- a/UnitTests/TestStringAdditions.m Mon Jun 03 17:17:12 2013 -0400
+++ b/UnitTests/TestStringAdditions.m Mon Jun 03 20:23:21 2013 -0400
@@ -467,7 +467,7 @@
}
- (void) testCaseInsensitivelyEqualToThingsThatAreNotStrings {
NSString *str = @"Adium rocks!";
- STAssertThrows([str isCaseInsensitivelyEqualToString:[[[NSObject alloc] init] autorelease]], @"can't compare string to plain object; this should have thrown");
+ STAssertThrows([str isCaseInsensitivelyEqualToString:(NSString *)[[[NSObject alloc] init] autorelease]], @"can't compare string to plain object; this should have thrown");
STAssertThrows([str isCaseInsensitivelyEqualToString:(NSString *)[NSNumber numberWithInteger:42]], @"can't compare string to number; this should have thrown");
STAssertThrows([str isCaseInsensitivelyEqualToString:(NSString *)[NSValue valueWithRect:NSMakeRect(0.0f, 0.0f, 128.0f, 128.0f)]], @"can't compare string to rect value; this should have thrown");
STAssertThrows([str isCaseInsensitivelyEqualToString:(NSString *)[NSImage imageNamed:@"NSDefaultApplicationIcon"]], @"can't compare string to image; this should have thrown");
More information about the commits
mailing list