From 517dcbf42e09fe39d9bb77db3027fe7b90ddc9d2 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Wed, 8 Jan 2025 16:49:26 +0100 Subject: [PATCH] QOpenGLEngineSharedShaders: disable copy/moves The class manages resources via raw pointers, and as such it's certainly not copiable. Explicitly disallow such copies. (It might be made movable, but no-one needs to move it, so I'm disabling moves as well.) This fixes warnings in QMetaType, which would otherwise pick up copy/moves as the class is also marked as a Q_GADGET. Change-Id: I983765b35304c8ab9ad42d31bcb729cfc9bfa2ac Reviewed-by: Laszlo Agocs --- src/opengl/qopenglengineshadermanager_p.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/opengl/qopenglengineshadermanager_p.h b/src/opengl/qopenglengineshadermanager_p.h index 78ad5d54fb0..3b9b643cb6b 100644 --- a/src/opengl/qopenglengineshadermanager_p.h +++ b/src/opengl/qopenglengineshadermanager_p.h @@ -221,6 +221,7 @@ class QOpenGLEngineShaderProg; class Q_OPENGL_EXPORT QOpenGLEngineSharedShaders { Q_GADGET + Q_DISABLE_COPY_MOVE(QOpenGLEngineSharedShaders) public: enum SnippetName {