QTriangulator: Q_DISABLE_COPY_MOVE(QInt64Set)

The class is unsafe for copy, as it would double-delete m_array,
and the move operations aren't implemented, either.

Found while fixing CID 11295.

Pick-to: 6.9 6.8 6.5 5.15
Coverity-Id: 11295
Change-Id: I8a615aaea3a8a4ad6abc8a5a9990c2dba5cfa65d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Marc Mutz 2025-03-03 20:03:04 +01:00
parent 9fee7cdfcc
commit d429fceeeb

View File

@ -434,6 +434,7 @@ static inline int primeForCount(int count)
// entire set. A value of -1 is used to mark unused entries.
class QInt64Set
{
Q_DISABLE_COPY_MOVE(QInt64Set)
public:
inline QInt64Set(int capacity = 64);
inline ~QInt64Set() {delete[] m_array;}