diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-30 09:28:38 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-30 15:24:43 +0200 |
commit | bed8c5d678bc73bede59bbddf5e8b6af05185780 (patch) | |
tree | 3becd8c3cc73115fe0c5746f0dc652c876cab20e /src/gui/rhi/qrhi_p_p.h | |
parent | 60666ed2fa20fa64ca9ad02c2124876a1d11b42a (diff) |
Switch to qvla where it makes sense in rhi
For all of these we know in advance that the vast majority of usages
will not exceed a certain number of elements. Also, none of these are
copied or moved ever.
Change-Id: I48aedf143e221dc178d661e23454d1e4fb7a271b
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhi_p_p.h')
-rw-r--r-- | src/gui/rhi/qrhi_p_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhi_p_p.h b/src/gui/rhi/qrhi_p_p.h index 552e2695ce..b5cf660409 100644 --- a/src/gui/rhi/qrhi_p_p.h +++ b/src/gui/rhi/qrhi_p_p.h @@ -228,7 +228,7 @@ private: QBitArray resUpdPoolMap; QSet<QRhiResource *> resources; QSet<QRhiResource *> pendingDeleteResources; - QList<QRhi::CleanupCallback> cleanupCallbacks; + QVarLengthArray<QRhi::CleanupCallback, 4> cleanupCallbacks; friend class QRhi; friend class QRhiResourceUpdateBatchPrivate; |