Handle NULL / nil in toOF() / toQt()
This commit is contained in:
parent
dcc0d5e48a
commit
5fb2a587b6
14 changed files with 48 additions and 3 deletions
|
@ -51,6 +51,9 @@ namespace ObjQt {
|
|||
static OF_INLINE QtGUIApplication *
|
||||
toOF(QGuiApplication *qGuiApplication)
|
||||
{
|
||||
if (qGuiApplication == NULL)
|
||||
return nil;
|
||||
|
||||
return [[[QtGUIApplication alloc]
|
||||
initWithQGuiApplication: qGuiApplication] autorelease];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue