From 7448884bb42a863b802f63c0a5bd2409ff15ba98 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Mon, 10 Aug 2020 14:43:51 +0300 Subject: [PATCH] QNX: fix build Remove unused argument and use default contructor for the flags. Change-Id: I09d319bc58199ed713333055a2fdd519c249f831 Reviewed-by: Ville Voutilainen Reviewed-by: James McDonnell --- src/plugins/platforms/qnx/qqnxglcontext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/platforms/qnx/qqnxglcontext.cpp b/src/plugins/platforms/qnx/qqnxglcontext.cpp index 69391c4feca..783ae2d20e2 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()) { }