diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2020-08-10 14:43:51 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2020-08-12 12:17:16 +0300 |
commit | 7448884bb42a863b802f63c0a5bd2409ff15ba98 (patch) | |
tree | a8c58ea4f65fa347f794a8ed2ce188efa7ff1fc5 /src/plugins | |
parent | b92ea7db490933fd8385d7f3f3da272b79cdb023 (diff) |
QNX: fix build
Remove unused argument and use default contructor for the flags.
Change-Id: I09d319bc58199ed713333055a2fdd519c249f831
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Reviewed-by: James McDonnell <jmcdonnell@blackberry.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/qnx/qqnxglcontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/qnx/qqnxglcontext.cpp b/src/plugins/platforms/qnx/qqnxglcontext.cpp index 69391c4fec..783ae2d20e 100644 --- a/src/plugins/platforms/qnx/qqnxglcontext.cpp +++ b/src/plugins/platforms/qnx/qqnxglcontext.cpp @@ -60,7 +60,7 @@ QT_BEGIN_NAMESPACE static QEGLPlatformContext::Flags makeFlags() { - QEGLPlatformContext::Flags result = 0; + QEGLPlatformContext::Flags result = {}; if (!QQnxIntegration::instance()->options().testFlag(QQnxIntegration::SurfacelessEGLContext)) result |= QEGLPlatformContext::NoSurfaceless; @@ -69,7 +69,7 @@ static QEGLPlatformContext::Flags makeFlags() } QQnxGLContext::QQnxGLContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share) - : QEGLPlatformContext(format, share, QQnxIntegration::instance()->eglDisplay(), 0, QVariant(), + : QEGLPlatformContext(format, share, QQnxIntegration::instance()->eglDisplay(), nullptr, makeFlags()) { } |