summaryrefslogtreecommitdiffstats
path: root/src/render/jobs/updateworldboundingvolumejob.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2020-05-05 14:07:25 +0200
committerPaul Lemire <paul.lemire@kdab.com>2020-06-04 11:13:16 +0200
commit0c9c4e163458f99ac350aef4979754cbe147dac3 (patch)
treef6acbf7b96f2ca146a2f2fefc666e3df817fa30d /src/render/jobs/updateworldboundingvolumejob.cpp
parent83ee10ff799fa5892b14a677036fb445ae16b10b (diff)
QResourcesManager: switch to std::vector
Given QVector is potentially slower for this use case and the fact that QVector might become QList in Qt6, we're better of using the std. Change-Id: If2c403439ddb856b60f8bfd5ae7c6ec1cb2c892a Reviewed-by: Mike Krus <mike.krus@kdab.com> (cherry picked from commit 04bdb35a6c5f5fe417c06392e6a0861d80ec9dba)
Diffstat (limited to 'src/render/jobs/updateworldboundingvolumejob.cpp')
-rw-r--r--src/render/jobs/updateworldboundingvolumejob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/jobs/updateworldboundingvolumejob.cpp b/src/render/jobs/updateworldboundingvolumejob.cpp
index 65a3ec75d..ae1df3fd9 100644
--- a/src/render/jobs/updateworldboundingvolumejob.cpp
+++ b/src/render/jobs/updateworldboundingvolumejob.cpp
@@ -57,7 +57,7 @@ UpdateWorldBoundingVolumeJob::UpdateWorldBoundingVolumeJob()
void UpdateWorldBoundingVolumeJob::run()
{
- const QVector<HEntity> handles = m_manager->activeHandles();
+ const std::vector<HEntity> &handles = m_manager->activeHandles();
for (const HEntity &handle : handles) {
Entity *node = m_manager->data(handle);