Fixed different issues spotted by the static code analysis.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32477 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-03-06 22:58:56 +00:00
parent 2a5554ea97
commit eb6d527983
5 changed files with 74 additions and 23 deletions

View file

@ -262,10 +262,10 @@ static SEL getSel;
numberOfColumns: 0];
}
- (id) _privateFrame: (NSRect)frameRect
mode: (int)aMode
numberOfRows: (int)rows
numberOfColumns: (int)cols
- (void) _privateFrame: (NSRect)frameRect
mode: (int)aMode
numberOfRows: (int)rows
numberOfColumns: (int)cols
{
_myZone = [self zone];
[self _renewRows: rows columns: cols rowSpace: 0 colSpace: 0];
@ -327,7 +327,6 @@ static SEL getSel;
_selectedCell = nil;
_selectedRow = _selectedColumn = -1;
}
return self;
}
/**<p>Initializes and returns a new NSMatrix in the specified frame frameRect.
@ -346,10 +345,11 @@ static SEL getSel;
return nil;
[self setCellClass: classId];
return [self _privateFrame: frameRect
mode: aMode
numberOfRows: rowsHigh
numberOfColumns: colsWide];
[self _privateFrame: frameRect
mode: aMode
numberOfRows: rowsHigh
numberOfColumns: colsWide];
return self;
}
/**<p>Initializes and returns a new NSMatrix in the specified frame frameRect.
@ -368,10 +368,11 @@ static SEL getSel;
return nil;
[self setPrototype: aCell];
return [self _privateFrame: frameRect
mode: aMode
numberOfRows: rowsHigh
numberOfColumns: colsWide];
[self _privateFrame: frameRect
mode: aMode
numberOfRows: rowsHigh
numberOfColumns: colsWide];
return self;
}
- (void) dealloc