adium 3342:008d69381ab2: string.h declares index(). Don't shadow...

commits at adium.im commits at adium.im
Sat Sep 25 03:24:16 UTC 2010


details:	http://hg.adium.im/adium/rev/008d69381ab2
revision:	3342:008d69381ab2
author:		Zachary West <zacw at adium.im>
date:		Fri Sep 24 23:24:09 2010 -0400

string.h declares index(). Don't shadow it.

diffs (21 lines):

diff -r 7aa2a7c20138 -r 008d69381ab2 Plugins/Dual Window Interface/AIMessageViewController.m
--- a/Plugins/Dual Window Interface/AIMessageViewController.m	Fri Sep 24 23:20:42 2010 -0400
+++ b/Plugins/Dual Window Interface/AIMessageViewController.m	Fri Sep 24 23:24:09 2010 -0400
@@ -1045,7 +1045,7 @@
 	return contacts;
 }
 
-- (NSArray *)textView:(NSTextView *)textView completions:(NSArray *)words forPartialWordRange:(NSRange)charRange indexOfSelectedItem:(NSInteger *)index
+- (NSArray *)textView:(NSTextView *)textView completions:(NSArray *)words forPartialWordRange:(NSRange)charRange indexOfSelectedItem:(NSInteger *)idx
 {
 	NSMutableArray	*completions = nil;
 	
@@ -1095,7 +1095,7 @@
 		
 		// Select the first completion by default.
 		if ([completions count]) {			
-			*index = 0;
+			*idx = 0;
 		}
 	}
 




More information about the commits mailing list