Cocoa: add missing return statement
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>
Tue, 21 Jun 2011 09:48:42 +0000 (11:48 +0200)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>
Tue, 21 Jun 2011 09:49:22 +0000 (11:49 +0200)
Rev-By: sroedal
src/plugins/platforms/cocoa/qcocoanativeinterface.mm

index 87d0ec4..cde457c 100644 (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;
 }