From c477fa3e2c3186057baec29a77dfd751efbee1ce Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Tue, 21 Jun 2011 11:48:42 +0200 Subject: [PATCH] Cocoa: add missing return statement Rev-By: sroedal --- src/plugins/platforms/cocoa/qcocoanativeinterface.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/platforms/cocoa/qcocoanativeinterface.mm b/src/plugins/platforms/cocoa/qcocoanativeinterface.mm index 87d0ec4a0c..cde457c669 100644 --- a/src/plugins/platforms/cocoa/qcocoanativeinterface.mm +++ b/src/plugins/platforms/cocoa/qcocoanativeinterface.mm @@ -53,8 +53,7 @@ void *QCocoaNativeInterface::nativeResourceForWindow(const QByteArray &resourceString, QWindow *window) { if (resourceString == "nsopenglcontext") { - - static_cast(window->handle())->currentContext()->nsOpenGLContext(); + return static_cast(window->handle())->currentContext()->nsOpenGLContext(); } return 0; }