From 779656299897c5d85fd7bfd0f766cb45c3d82e4e Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 24 Oct 2015 02:45:31 +0200 Subject: QDataBuffer: disable copy special member functions The compiler-generated ones would break class invariants. This internal class so far isn't copied. This patch makes sure that it stays that way. Change-Id: I8bf75058edaf2adf148ae9edff4bf4e9a3b3368d Reviewed-by: Gunnar Sletta --- src/gui/painting/qdatabuffer_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/painting') diff --git a/src/gui/painting/qdatabuffer_p.h b/src/gui/painting/qdatabuffer_p.h index 0a4a3d5c9e..3fe39efdde 100644 --- a/src/gui/painting/qdatabuffer_p.h +++ b/src/gui/painting/qdatabuffer_p.h @@ -53,6 +53,7 @@ QT_BEGIN_NAMESPACE template class QDataBuffer { + Q_DISABLE_COPY(QDataBuffer); public: QDataBuffer(int res) { -- cgit v1.2.3