diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2018-09-04 22:57:31 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2018-09-05 21:02:07 +0000 |
commit | 4828923558a12737a7ca8b31d64b665897f2405c (patch) | |
tree | 5a6fadb96c0e9403d12501f4de2f331b4e327bd1 | |
parent | 27457f50b35b3941db4e7e5def742fcdefe218ff (diff) |
Fix warning about ignored qualifiers
graphicscontext.cpp:229:90: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
Change-Id: I495bc19409f348069f5bfffd15516b6a1d58d150
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
-rw-r--r-- | src/render/renderers/opengl/graphicshelpers/graphicscontext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/renderers/opengl/graphicshelpers/graphicscontext.cpp b/src/render/renderers/opengl/graphicshelpers/graphicscontext.cpp index 1e2035c01..59b5701f8 100644 --- a/src/render/renderers/opengl/graphicshelpers/graphicscontext.cpp +++ b/src/render/renderers/opengl/graphicshelpers/graphicscontext.cpp @@ -226,7 +226,7 @@ QOpenGLShaderProgram *GraphicsContext::createShaderProgram(Shader *shaderNode) const auto shaderCode = shaderNode->shaderCode(); QString logs; for (int i = QShaderProgram::Vertex; i <= QShaderProgram::Compute; ++i) { - const QShaderProgram::ShaderType type = static_cast<const QShaderProgram::ShaderType>(i); + const QShaderProgram::ShaderType type = static_cast<QShaderProgram::ShaderType>(i); if (!shaderCode.at(i).isEmpty()) { // Note: logs only return the error but not all the shader code // we could append it |