Correct issues with missing or incorrect self

tests in initXXX methods pointed out by static analyser.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32588 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-03-14 22:59:20 +00:00
parent 412547c233
commit 2e738f7ba2
23 changed files with 204 additions and 50 deletions

View file

@ -193,8 +193,6 @@ static GSMemoryPanel *sharedGSMemoryPanel = nil;
/* Activate debugging of allocation. */
GSDebugAllocationActive (YES);
orderingBy = @selector(compareByCount:);
array = [NSMutableArray new];
hbox = [GSHbox new];
[hbox setDefaultMinXMargin: 5];
[hbox setBorder: 5];
@ -266,13 +264,12 @@ static GSMemoryPanel *sharedGSMemoryPanel = nil;
scrollView = [[NSScrollView alloc]
initWithFrame: NSMakeRect (0, 0, 350, 300)];
[scrollView setDocumentView: table];
RELEASE (table);
[scrollView setHasHorizontalScroller: YES];
[scrollView setHasVerticalScroller: YES];
[scrollView setBorderType: NSBezelBorder];
[scrollView setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable)];
[table sizeToFit];
RELEASE (table);
vbox = [GSVbox new];
[vbox setDefaultMinYMargin: 5];
@ -287,13 +284,18 @@ static GSMemoryPanel *sharedGSMemoryPanel = nil;
winFrame.origin = NSMakePoint (100, 200);
self = [super initWithContentRect: winFrame
styleMask: (NSTitledWindowMask
| NSClosableWindowMask
| NSMiniaturizableWindowMask
| NSResizableWindowMask)
backing: NSBackingStoreBuffered
defer: NO];
styleMask: (NSTitledWindowMask
| NSClosableWindowMask
| NSMiniaturizableWindowMask
| NSResizableWindowMask)
backing: NSBackingStoreBuffered
defer: NO];
if (nil == self)
return nil;
array = [NSMutableArray new];
orderingBy = @selector(compareByCount:);
[self setReleasedWhenClosed: NO];
[self setContentView: vbox];
RELEASE (vbox);