mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Bugfix for #19446
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24945 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d54653796c
commit
7081848688
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-03-30 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSPredicate.m: ([-parseOr]) Use orPredicateWithSubpredicates
|
||||
rather than andPredicateWithSubpredicates. Fix for bug #19446.
|
||||
|
||||
2007-03-25 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSTimer.m: minor optimisation ... avoid unnecessary use of
|
||||
|
|
|
@ -1435,11 +1435,11 @@
|
|||
notPredicateWithSubpredicate: [self parseNot]];
|
||||
}
|
||||
|
||||
if ([self scanPredicateKeyword:@"TRUEPREDICATE"])
|
||||
if ([self scanPredicateKeyword: @"TRUEPREDICATE"])
|
||||
{
|
||||
return [NSPredicate predicateWithValue: YES];
|
||||
}
|
||||
if ([self scanPredicateKeyword:@"FALSEPREDICATE"])
|
||||
if ([self scanPredicateKeyword: @"FALSEPREDICATE"])
|
||||
{
|
||||
return [NSPredicate predicateWithValue: NO];
|
||||
}
|
||||
|
@ -1451,7 +1451,7 @@
|
|||
{
|
||||
NSPredicate *l = [self parseNot];
|
||||
|
||||
while ([self scanPredicateKeyword:@"OR"])
|
||||
while ([self scanPredicateKeyword: @"OR"])
|
||||
{
|
||||
NSPredicate *r = [self parseNot];
|
||||
|
||||
|
@ -1483,7 +1483,7 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
l = [NSCompoundPredicate andPredicateWithSubpredicates:
|
||||
l = [NSCompoundPredicate orPredicateWithSubpredicates:
|
||||
[NSArray arrayWithObjects: l, r, nil]];
|
||||
}
|
||||
}
|
||||
|
@ -1771,7 +1771,7 @@
|
|||
[args addObject: [self parseExpression]];
|
||||
}
|
||||
|
||||
if (![self scanString:@")" intoString:NULL])
|
||||
if (![self scanString: @")" intoString: NULL])
|
||||
{
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"Missing ) in function arguments"];
|
||||
|
|
Loading…
Reference in a new issue