analyzer warnings: assign [super init] to self and check for nil
This commit is contained in:
@@ -1916,11 +1916,11 @@ double wxWidgetCocoaImpl::GetContentScaleFactor() const
|
||||
|
||||
- (id)init:(wxWindow *)win
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
m_win = win;
|
||||
m_isDone = false;
|
||||
|
||||
if ( self = [super init] )
|
||||
{
|
||||
m_win = win;
|
||||
m_isDone = false;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user