diff options
author | Marc Mutz <[email protected]> | 2025-03-03 20:03:04 +0100 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2025-03-08 03:42:51 +0000 |
commit | d429fceeebff24c112df3cf202e48bc338551554 (patch) | |
tree | 8b1d7e9edf060d334a2c15fdce64b812c1b38cc9 | |
parent | 9fee7cdfcce00ce6500b8eebf67f4a6c91be98bd (diff) |
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 <[email protected]>
-rw-r--r-- | src/gui/painting/qtriangulator.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/painting/qtriangulator.cpp b/src/gui/painting/qtriangulator.cpp index ba231364cf7..df96e9f9567 100644 --- a/src/gui/painting/qtriangulator.cpp +++ b/src/gui/painting/qtriangulator.cpp @@ -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;} |