From e5a2c87dc702d76407510b55a5ad661f7d48353c Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 21 Mar 2017 09:44:32 +0100 Subject: [PATCH] xcb_egl: fix clang error due to m_connection now being unused Change-Id: I00846d26013d31856f049659069852d749d54b8e Reviewed-by: Edward Welbourne Reviewed-by: Gatis Paeglis --- .../platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h | 6 +----- .../xcb/gl_integrations/xcb_egl/qxcbeglintegration.cpp | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h b/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h index 5f6d9f92dd..fe50afa62a 100644 --- a/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h +++ b/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h @@ -51,9 +51,8 @@ class QXcbEglContext : public QEGLPlatformContext { public: QXcbEglContext(const QSurfaceFormat &glFormat, QPlatformOpenGLContext *share, - EGLDisplay display, QXcbConnection *c, const QVariant &nativeHandle) + EGLDisplay display, const QVariant &nativeHandle) : QEGLPlatformContext(glFormat, share, display, 0, nativeHandle) - , m_connection(c) { } @@ -83,9 +82,6 @@ public: QVariant nativeHandle() const { return QVariant::fromValue(QEGLNativeContext(eglContext(), eglDisplay())); } - -private: - QXcbConnection *m_connection; }; QT_END_NAMESPACE diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglintegration.cpp b/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglintegration.cpp index 4852d38f7e..40ecd9e58d 100644 --- a/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglintegration.cpp +++ b/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglintegration.cpp @@ -102,7 +102,6 @@ QPlatformOpenGLContext *QXcbEglIntegration::createPlatformOpenGLContext(QOpenGLC QXcbEglContext *platformContext = new QXcbEglContext(screen->surfaceFormatFor(context->format()), context->shareHandle(), eglDisplay(), - screen->connection(), context->nativeHandle()); context->setNativeHandle(platformContext->nativeHandle()); return platformContext;