From f7ba6a0acfeb04b5ac0018ae42eda65398a47fd4 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Sat, 27 Oct 2018 21:23:28 +0200 Subject: [PATCH] QAbstractOpenGLFunctions: disallow copy/assignment operations QAbstractOpenGLFunctions must not be copied but the copy and assignment operators were not marked as deleted. Add Q_DISABLE_COPY to prevent an accidentally copy. Fixes: QTBUG-71422 Change-Id: I5fa508bc76a4142a4404d3529720e717b7f7fd41 Reviewed-by: Thiago Macieira Reviewed-by: Niels Dekker Reviewed-by: Laszlo Agocs --- src/gui/opengl/qopenglversionfunctions.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/opengl/qopenglversionfunctions.h b/src/gui/opengl/qopenglversionfunctions.h index 3af1ed0466..f828e5668b 100644 --- a/src/gui/opengl/qopenglversionfunctions.h +++ b/src/gui/opengl/qopenglversionfunctions.h @@ -214,6 +214,7 @@ public: virtual bool initializeOpenGLFunctions(); + Q_DISABLE_COPY(QAbstractOpenGLFunctions) Q_DECLARE_PRIVATE(QAbstractOpenGLFunctions) protected: