mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:51:02 +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
a6086e2728
commit
8cf1cd3bab
23 changed files with 204 additions and 50 deletions
|
@ -61,7 +61,8 @@
|
|||
*/
|
||||
- (id) initTextCell: (NSString *)aString
|
||||
{
|
||||
if (! ( self = [super initTextCell: @""] ) )
|
||||
self = [super initTextCell: @""];
|
||||
if (nil == self)
|
||||
return nil;
|
||||
|
||||
_cell.is_bezeled = YES;
|
||||
|
@ -473,7 +474,10 @@
|
|||
|
||||
- (id) initWithCoder: (NSCoder*)aDecoder
|
||||
{
|
||||
[super initWithCoder: aDecoder];
|
||||
self = [super initWithCoder: aDecoder];
|
||||
if (nil == self)
|
||||
return nil;
|
||||
|
||||
if ([aDecoder allowsKeyedCoding])
|
||||
{
|
||||
if ([aDecoder containsValueForKey: @"NSContents"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue