Diffstat (limited to 'freetype/freetypefactoryimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | freetype/freetypefactoryimpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/freetype/freetypefactoryimpl.cpp b/freetype/freetypefactoryimpl.cpp index 71460b2..24fb13a 100644 --- a/freetype/freetypefactoryimpl.cpp +++ b/freetype/freetypefactoryimpl.cpp @@ -39,19 +39,19 @@ QFontFactory *FreeTypeFactoryImpl::fontFactory() } QRESULT FreeTypeFactoryImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_FontFactory ) *iface = this; if ( *iface ) (*iface)->addRef(); - return QS_OK; + return (*iface) ? QS_OK : QS_FALSE; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( FreeTypeFactoryImpl ) } |