diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-26 09:43:49 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-26 09:55:57 +0100 |
commit | f073783698fed536029b314cb523cf07cfa8b542 (patch) | |
tree | eca099758deb7093d9d60cf2fb62a40af2309be4 | |
parent | 5d4056012230d18d3db94db6d7e5c42676dddefc (diff) |
Avoid initializing QFlags with 0 or nullptr
It is being deprecated.
Remove the constructor initialization as member initialization is
already present in the header.
Change-Id: I249ef164d42eee378fb016e6162c154caaa8b2de
Reviewed-by: Jesus Fernandez <jsfdez@gmail.com>
-rw-r--r-- | src/plugins/platforms/webgl/qwebglwindow.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/platforms/webgl/qwebglwindow.cpp b/src/plugins/platforms/webgl/qwebglwindow.cpp index 8b2af2e..ed26f08 100644 --- a/src/plugins/platforms/webgl/qwebglwindow.cpp +++ b/src/plugins/platforms/webgl/qwebglwindow.cpp @@ -58,9 +58,6 @@ QWebGLWindow::QWebGLWindow(QWindow *w) : QPlatformWindow(w), d_ptr(new QWebGLWindowPrivate(this)) { - Q_D(QWebGLWindow); - d->raster = false; - d->flags = 0; } QWebGLWindow::~QWebGLWindow() @@ -118,7 +115,7 @@ void QWebGLWindow::destroy() qt_window_private(window())->updateRequestPending = false; - d->flags = 0; + d->flags = QWebGLWindowPrivate::Flags{}; auto integrationPrivate = QWebGLIntegrationPrivate::instance(); auto clientData = integrationPrivate->findClientData(surface()->surfaceHandle()); |