* Source/NSKeyValueMutableArray.m: Various non-functional variable

and parameter renames to avoid bogus compiler warnings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25659 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2007-12-02 20:35:53 +00:00
parent 18e2a06aa7
commit 516667c805
2 changed files with 12 additions and 9 deletions

View file

@ -11,6 +11,9 @@
instances.
* Source/NSCalendarDate.m: Add explicit include of NSDictionary.h.
* Source/NSKeyValueMutableArray.m: Various non-functional variable
and parameter renames to avoid bogus compiler warnings.
2007-11-30 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -91,23 +91,23 @@
NSKeyValueMutableArray *proxy;
unsigned size = [aKey maximumLengthOfBytesUsingEncoding:
NSUTF8StringEncoding];
char key[size + 1];
[aKey getCString: key
char keybuf[size + 1];
[aKey getCString: keybuf
maxLength: size + 1
encoding: NSUTF8StringEncoding];
if (islower(*key))
if (islower(*keybuf))
{
*key = toupper(*key);
*keybuf = toupper(*keybuf);
}
proxy = [NSKeyValueFastMutableArray arrayForKey: aKey
ofObject: anObject
withCapitalizedKey: key];
withCapitalizedKey: keybuf];
if (proxy == nil)
{
proxy = [NSKeyValueSlowMutableArray arrayForKey: aKey
ofObject: anObject
withCapitalizedKey: key];
withCapitalizedKey: keybuf];
if (proxy == nil)
{
@ -162,7 +162,7 @@
@implementation NSKeyValueFastMutableArray
+ (id) arrayForKey: (NSString *)aKey ofObject: (id)anObject
withCapitalizedKey: (char *)capitalized
withCapitalizedKey: (const char *)capitalized
{
return [[[self alloc] initWithKey: aKey ofObject: anObject
withCapitalizedKey: capitalized] autorelease];
@ -418,9 +418,9 @@
@implementation NSKeyValueIvarMutableArray
+ (id) arrayForKey: (NSString *)key ofObject: (id)anObject
+ (id) arrayForKey: (NSString *)aKey ofObject: (id)anObject
{
return [[[self alloc] initWithKey: key ofObject: anObject] autorelease];
return [[[self alloc] initWithKey: aKey ofObject: anObject] autorelease];
}
- (id) initWithKey: (NSString *)aKey ofObject: (id)anObject