mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
* 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:
parent
18e2a06aa7
commit
516667c805
2 changed files with 12 additions and 9 deletions
|
@ -11,6 +11,9 @@
|
||||||
instances.
|
instances.
|
||||||
|
|
||||||
* Source/NSCalendarDate.m: Add explicit include of NSDictionary.h.
|
* 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>
|
2007-11-30 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -91,23 +91,23 @@
|
||||||
NSKeyValueMutableArray *proxy;
|
NSKeyValueMutableArray *proxy;
|
||||||
unsigned size = [aKey maximumLengthOfBytesUsingEncoding:
|
unsigned size = [aKey maximumLengthOfBytesUsingEncoding:
|
||||||
NSUTF8StringEncoding];
|
NSUTF8StringEncoding];
|
||||||
char key[size + 1];
|
char keybuf[size + 1];
|
||||||
[aKey getCString: key
|
[aKey getCString: keybuf
|
||||||
maxLength: size + 1
|
maxLength: size + 1
|
||||||
encoding: NSUTF8StringEncoding];
|
encoding: NSUTF8StringEncoding];
|
||||||
if (islower(*key))
|
if (islower(*keybuf))
|
||||||
{
|
{
|
||||||
*key = toupper(*key);
|
*keybuf = toupper(*keybuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
proxy = [NSKeyValueFastMutableArray arrayForKey: aKey
|
proxy = [NSKeyValueFastMutableArray arrayForKey: aKey
|
||||||
ofObject: anObject
|
ofObject: anObject
|
||||||
withCapitalizedKey: key];
|
withCapitalizedKey: keybuf];
|
||||||
if (proxy == nil)
|
if (proxy == nil)
|
||||||
{
|
{
|
||||||
proxy = [NSKeyValueSlowMutableArray arrayForKey: aKey
|
proxy = [NSKeyValueSlowMutableArray arrayForKey: aKey
|
||||||
ofObject: anObject
|
ofObject: anObject
|
||||||
withCapitalizedKey: key];
|
withCapitalizedKey: keybuf];
|
||||||
|
|
||||||
if (proxy == nil)
|
if (proxy == nil)
|
||||||
{
|
{
|
||||||
|
@ -162,7 +162,7 @@
|
||||||
@implementation NSKeyValueFastMutableArray
|
@implementation NSKeyValueFastMutableArray
|
||||||
|
|
||||||
+ (id) arrayForKey: (NSString *)aKey ofObject: (id)anObject
|
+ (id) arrayForKey: (NSString *)aKey ofObject: (id)anObject
|
||||||
withCapitalizedKey: (char *)capitalized
|
withCapitalizedKey: (const char *)capitalized
|
||||||
{
|
{
|
||||||
return [[[self alloc] initWithKey: aKey ofObject: anObject
|
return [[[self alloc] initWithKey: aKey ofObject: anObject
|
||||||
withCapitalizedKey: capitalized] autorelease];
|
withCapitalizedKey: capitalized] autorelease];
|
||||||
|
@ -418,9 +418,9 @@
|
||||||
|
|
||||||
@implementation NSKeyValueIvarMutableArray
|
@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
|
- (id) initWithKey: (NSString *)aKey ofObject: (id)anObject
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue