summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-10-24 02:45:31 +0200
committerMarc Mutz <marc.mutz@kdab.com>2015-10-31 18:50:38 +0000
commit779656299897c5d85fd7bfd0f766cb45c3d82e4e (patch)
tree5269b4aeeef25365c13da2676aa5a4456e2a0b22 /src
parent8793ad8175191db9abfb9f034017b9a8fe095f5c (diff)
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')
-rw-r--r--src/gui/painting/qdatabuffer_p.h1
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)
{