analyzer warnings: assign [super init] to self and check for nil
This commit is contained in:
@@ -112,8 +112,11 @@
|
||||
@implementation WXCTabViewImageItem : NSTabViewItem
|
||||
- (id)init
|
||||
{
|
||||
m_image = nil;
|
||||
return [super initWithIdentifier:nil];
|
||||
if (self = [super initWithIdentifier:nil])
|
||||
{
|
||||
m_image = nil;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
- (void)dealloc
|
||||
{
|
||||
|
Reference in New Issue
Block a user