adium-1.4 3068:f0ecbebd73c4: string.h declares index(). Don't sh...

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


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

string.h declares index(). Don't shadow it.
(transplanted from 008d69381ab209e9c57930cc38b9a64d9c88ff9e)

diffs (21 lines):

diff -r 3945617cba4f -r f0ecbebd73c4 Plugins/Dual Window Interface/AIMessageViewController.m
--- a/Plugins/Dual Window Interface/AIMessageViewController.m	Fri Sep 24 23:22:25 2010 -0400
+++ b/Plugins/Dual Window Interface/AIMessageViewController.m	Fri Sep 24 23:24:09 2010 -0400
@@ -1041,7 +1041,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;
 	
@@ -1076,7 +1076,7 @@
 
 		// Select the first completion by default.
 		if ([completions count]) {			
-			*index = 0;
+			*idx = 0;
 		}
 	}
 




More information about the commits mailing list