summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-10-13 14:29:30 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-13 14:49:08 +0200
commit30cb91e17d2fbbdce90f7542f44e12af971ba2de (patch)
tree37996b906c0a715745c4447905524712d4e35adb /src/gui
parent28c0b26fb7a6d33670d3ad523562aa11dcd40d35 (diff)
downloadqtbase-30cb91e17d2fbbdce90f7542f44e12af971ba2de.tar.gz
Fix struct/class mismatch.
Change-Id: I282c9d9e10b0783cc10d32de031a30d07b802a55 Reviewed-on: http://codereview.qt-project.org/6610 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qplatformopenglcontext_qpa.cpp7
1 files changed, 4 insertions, 3 deletions
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()