analyzer warnings: assign [super init] to self and check for nil

This commit is contained in:
Stefan Csomor
2017-06-07 10:21:18 +02:00
parent c6ca6d922f
commit 4312de64c7
15 changed files with 165 additions and 121 deletions

View File

@@ -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;
}