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.8 6.5 5.15 Coverity-Id: 11295 Change-Id: I8a615aaea3a8a4ad6abc8a5a9990c2dba5cfa65d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit d429fceeebff24c112df3cf202e48bc338551554) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7f01e20c37
commit
f2cc2c9074
@ -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;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user