Cocoa: add missing return statement

Rev-By: sroedal
This commit is contained in:
Richard Moe Gustavsen 2011-06-21 11:48:42 +02:00
parent 14a1d6d3c7
commit c477fa3e2c

View File

@ -53,8 +53,7 @@
void *QCocoaNativeInterface::nativeResourceForWindow(const QByteArray &resourceString, QWindow *window)
{
if (resourceString == "nsopenglcontext") {
static_cast<QCocoaWindow *>(window->handle())->currentContext()->nsOpenGLContext();
return static_cast<QCocoaWindow *>(window->handle())->currentContext()->nsOpenGLContext();
}
return 0;
}