summaryrefslogtreecommitdiff
path: root/src/mbgl/programs
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-09-23 13:43:40 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-09-25 18:59:07 +0300
commit3c23f6f9f7f92ef43cb3d78e5570976058cf49c5 (patch)
treec1176dfb678bdaf50df9891e07ade59cae855bc1 /src/mbgl/programs
parent60a3096109a2eba4580bac72014c0ccd57cdcd8a (diff)
downloadqtlocation-mapboxgl-3c23f6f9f7f92ef43cb3d78e5570976058cf49c5.tar.gz
[core] Fix bugprone-use-after-move
Luckily this is an enum and was being copied.
Diffstat (limited to 'src/mbgl/programs')
-rw-r--r--src/mbgl/programs/collision_box_program.hpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/mbgl/programs/collision_box_program.hpp b/src/mbgl/programs/collision_box_program.hpp
index 1677be1250..3b5142633d 100644
--- a/src/mbgl/programs/collision_box_program.hpp
+++ b/src/mbgl/programs/collision_box_program.hpp
@@ -89,21 +89,20 @@ public:
drawScopeIt = segment.drawScopes.emplace(layerID, context.createDrawScope()).first;
}
- program->draw(
- context,
- renderPass,
- std::move(drawMode),
- std::move(depthMode),
- std::move(stencilMode),
- std::move(colorMode),
- std::move(cullFaceMode),
- uniformValues,
- drawScopeIt->second,
- allAttributeBindings.offset(segment.vertexOffset),
- textureBindings,
- indexBuffer,
- segment.indexOffset,
- segment.indexLength);
+ program->draw(context,
+ renderPass,
+ drawMode,
+ depthMode,
+ stencilMode,
+ colorMode,
+ cullFaceMode,
+ uniformValues,
+ drawScopeIt->second,
+ allAttributeBindings.offset(segment.vertexOffset),
+ textureBindings,
+ indexBuffer,
+ segment.indexOffset,
+ segment.indexLength);
}
}
};