summaryrefslogtreecommitdiffstats
path: root/src/render/backend/visitorutils_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/backend/visitorutils_p.h')
-rw-r--r--src/render/backend/visitorutils_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/backend/visitorutils_p.h b/src/render/backend/visitorutils_p.h
index 824cd0ddf..cea4af2b1 100644
--- a/src/render/backend/visitorutils_p.h
+++ b/src/render/backend/visitorutils_p.h
@@ -132,7 +132,7 @@ void visitPrimitives(NodeManagers *manager, const GeometryProvider *renderer, Vi
if (geom) {
Qt3DRender::Render::Attribute *attribute = nullptr;
const auto attrIds = geom->attributes();
- for (const Qt3DCore::QNodeId attrId : attrIds) {
+ for (const Qt3DCore::QNodeId &attrId : attrIds) {
attribute = manager->lookupResource<Attribute, AttributeManager>(attrId);
if (attribute){
if (!positionAttribute && attribute->name() == Qt3DCore::QAttribute::defaultPositionAttributeName())