Fix small bugs found by static analyser.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31410 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2010-09-24 18:58:57 +00:00
parent 9663941b71
commit eefcd4bb09
3 changed files with 11 additions and 8 deletions

View file

@ -477,12 +477,6 @@ static id buttonCellClass = nil;
if ([self isEnabled])
{
NSString *characters = [theEvent characters];
unichar character = 0;
if ([characters length] > 0)
{
character = [characters characterAtIndex: 0];
}
/* Handle SPACE to perform a click */
if ([characters isEqualToString: @" "])