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 <thiago.macieira@intel.com>
Reviewed-by: Niels Dekker
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
bb10
Christian Ehrlicher 2018-10-27 21:23:28 +02:00
parent d824044284
commit f7ba6a0acf
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ public:
virtual bool initializeOpenGLFunctions();
Q_DISABLE_COPY(QAbstractOpenGLFunctions)
Q_DECLARE_PRIVATE(QAbstractOpenGLFunctions)
protected: