From 30cb91e17d2fbbdce90f7542f44e12af971ba2de Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 13 Oct 2011 14:29:30 +0200 Subject: Fix struct/class mismatch. Change-Id: I282c9d9e10b0783cc10d32de031a30d07b802a55 Reviewed-on: http://codereview.qt-project.org/6610 Reviewed-by: Friedemann Kleint --- src/gui/kernel/qplatformopenglcontext_qpa.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/kernel/qplatformopenglcontext_qpa.cpp') diff --git a/src/gui/kernel/qplatformopenglcontext_qpa.cpp b/src/gui/kernel/qplatformopenglcontext_qpa.cpp index 26920cc574..3b2ce2465b 100644 --- a/src/gui/kernel/qplatformopenglcontext_qpa.cpp +++ b/src/gui/kernel/qplatformopenglcontext_qpa.cpp @@ -84,16 +84,17 @@ QT_BEGIN_NAMESPACE Reimplement this function in a subclass to indicate what format the glContext actually has. */ -struct QPlatformOpenGLContextPrivate +class QPlatformOpenGLContextPrivate { +public: + QPlatformOpenGLContextPrivate() : context(0) {} + QOpenGLContext *context; }; QPlatformOpenGLContext::QPlatformOpenGLContext() : d_ptr(new QPlatformOpenGLContextPrivate) { - Q_D(QPlatformOpenGLContext); - d->context = 0; } QPlatformOpenGLContext::~QPlatformOpenGLContext() -- cgit v1.2.3