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>
bb10
Marc Mutz 2015-10-24 02:45:31 +02:00
parent 8793ad8175
commit 7796562998
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ QT_BEGIN_NAMESPACE
template <typename Type> class QDataBuffer
{
Q_DISABLE_COPY(QDataBuffer);
public:
QDataBuffer(int res)
{