diff options
author | Sergio Martins <sergio.martins@kdab.com> | 2017-02-12 23:52:16 +0000 |
---|---|---|
committer | Sérgio Martins <sergio.martins@kdab.com> | 2017-02-24 16:24:59 +0000 |
commit | 929d0108dc61f7a76e14477d4451a9a3fb3ed75a (patch) | |
tree | a992f0f22a59d38d7a0d9e86f0fa729667ddedfc /src/render/materialsystem/shader.cpp | |
parent | ddc878f2fc978a3b740b7ccf9258c824c6ba959a (diff) |
Fix container detachments when using range loop
Fixes -Wclazy-range-loop warnings.
Change-Id: I6348b259a444203afe3490ea41c149c9b6740164
Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'src/render/materialsystem/shader.cpp')
-rw-r--r-- | src/render/materialsystem/shader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/materialsystem/shader.cpp b/src/render/materialsystem/shader.cpp index 69d22297a..e534a1ffc 100644 --- a/src/render/materialsystem/shader.cpp +++ b/src/render/materialsystem/shader.cpp @@ -272,7 +272,7 @@ void Shader::prepareUniforms(ShaderParameterPack &pack) const auto end = values.cend(); while (it != end) { // Find if there's a uniform with the same name id - for (const ShaderUniform &uniform : m_uniforms) { + for (const ShaderUniform &uniform : qAsConst(m_uniforms)) { if (uniform.m_nameId == it.key()) { pack.setSubmissionUniform(uniform); break; |