summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2012-10-22 16:08:44 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-23 12:28:55 +0200
commit0a6691027db87ef30ee4010740feb7bc9c753bd1 (patch)
tree0077439e879231470a611d5bfe24012fed6c7461 /src/plugins/platforms
parent202ac1cbe7d7e2a30b3c2384ce8d62655ba019c0 (diff)
Fix warning about missing return value in XCB native interface.
Change-Id: If311211076c05ed8d0fb62a9ff1129b93a813850 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r--src/plugins/platforms/xcb/qxcbnativeinterface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbnativeinterface.cpp b/src/plugins/platforms/xcb/qxcbnativeinterface.cpp
index 40f39843e5..2a36fb7369 100644
--- a/src/plugins/platforms/xcb/qxcbnativeinterface.cpp
+++ b/src/plugins/platforms/xcb/qxcbnativeinterface.cpp
@@ -186,6 +186,8 @@ void * QXcbNativeInterface::eglContextForContext(QOpenGLContext *context)
#if defined(XCB_USE_EGL)
QEGLPlatformContext *eglPlatformContext = static_cast<QEGLPlatformContext *>(context->handle());
return eglPlatformContext->eglContext();
+#else
+ return 0;
#endif
}