Cocoa: add missing return statement

Rev-By: sroedal
bb10
Richard Moe Gustavsen 2011-06-21 11:48:42 +02:00
parent 14a1d6d3c7
commit c477fa3e2c
1 changed files with 1 additions and 2 deletions

View File

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