Handle NULL / nil in toOF() / toQt()

This commit is contained in:
Jonathan Schleifer 2017-05-14 03:07:21 +02:00
parent dcc0d5e48a
commit 5fb2a587b6
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
14 changed files with 48 additions and 3 deletions

View file

@ -71,6 +71,9 @@ namespace ObjQt {
static OF_INLINE QtAction *
toOF(QAction *qAction)
{
if (qAction == NULL)
return nil;
return [[[QtAction alloc] initWithQAction: qAction] autorelease];
}