mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 14:56:36 +00:00
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:
parent
412547c233
commit
2e738f7ba2
23 changed files with 204 additions and 50 deletions
|
@ -147,6 +147,9 @@ static NSHelpPanel *_sharedPanel = nil;
|
|||
styleMask: NSTitledWindowMask|NSClosableWindowMask|NSResizableWindowMask
|
||||
backing: NSBackingStoreBuffered
|
||||
defer: NO];
|
||||
if (nil == self)
|
||||
return nil;
|
||||
|
||||
[self setReleasedWhenClosed: NO];
|
||||
[self setTitle: _(@"Help")];
|
||||
s = [[NSScrollView alloc] initWithFrame: contentRect];
|
||||
|
@ -177,6 +180,7 @@ static NSHelpPanel *_sharedPanel = nil;
|
|||
else
|
||||
{
|
||||
RELEASE(self);
|
||||
RETAIN(_sharedPanel);
|
||||
}
|
||||
return _sharedPanel;
|
||||
}
|
||||
|
@ -220,7 +224,9 @@ static NSHelpPanel *_sharedPanel = nil;
|
|||
|
||||
- (id) initWithCoder: (NSCoder*)aDecoder
|
||||
{
|
||||
[super initWithCoder: aDecoder];
|
||||
self = [super initWithCoder: aDecoder];
|
||||
if (nil == self)
|
||||
return nil;
|
||||
|
||||
return self;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue