diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-10-24 02:45:31 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-10-31 18:50:38 +0000 |
commit | 779656299897c5d85fd7bfd0f766cb45c3d82e4e (patch) | |
tree | 5269b4aeeef25365c13da2676aa5a4456e2a0b22 /src/gui/painting | |
parent | 8793ad8175191db9abfb9f034017b9a8fe095f5c (diff) | |
download | qtbase-779656299897c5d85fd7bfd0f766cb45c3d82e4e.tar.gz |
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 <gunnar@sletta.org>
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qdatabuffer_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 <typename Type> class QDataBuffer { + Q_DISABLE_COPY(QDataBuffer); public: QDataBuffer(int res) { |