Commit 07d9a2e3 authored by Jan Möbius's avatar Jan Möbius

Silence some cppcheck warnings

parent e11d5c9b
......@@ -217,8 +217,8 @@ void ViewControlPlugin::updateShaderList() {
std::vector<QString> uniforms;
if ( ini.get_entry(uniforms,"Info","uniforms") ) {
info.hasUniforms = true;
for ( uint i = 0 ; i < uniforms.size() ; ++i)
info.uniforms << uniforms[i];
for ( uint uniform = 0 ; uniform < uniforms.size() ; ++uniform)
info.uniforms << uniforms[uniform];
} else {
info.hasUniforms = false;
info.uniforms.clear();
......@@ -227,8 +227,8 @@ void ViewControlPlugin::updateShaderList() {
//unform types
uniforms.clear();
if ( info.hasUniforms && ini.get_entry(uniforms,"Info","uniformTypes") ) {
for ( uint i = 0 ; i < uniforms.size() ; ++i)
info.uniformTypes << uniforms[i];
for ( uint uniform = 0 ; uniform < uniforms.size() ; ++uniform)
info.uniformTypes << uniforms[uniform];
} else if ( info.hasUniforms ) {
info.hasUniforms = false;
info.uniforms.clear();
......@@ -239,8 +239,8 @@ void ViewControlPlugin::updateShaderList() {
//uniform default values
uniforms.clear();
if ( info.hasUniforms && ini.get_entry(uniforms,"Info","uniformsDefault" ) ) {
for ( uint i = 0 ; i < uniforms.size() ; ++i)
info.uniformsDefault << uniforms[i];
for ( uint uniform = 0 ; uniform < uniforms.size() ; ++uniform)
info.uniformsDefault << uniforms[uniform];
} else if ( info.hasUniforms ) {
info.hasUniforms = false;
info.uniforms.clear();
......@@ -250,16 +250,16 @@ void ViewControlPlugin::updateShaderList() {
//uniform min values
uniforms.clear();
if ( info.hasUniforms && ini.get_entry(uniforms,"Info","uniformsMin" ) ) {
for ( uint i = 0 ; i < uniforms.size() ; ++i)
info.uniformsMin << uniforms[i];
for ( uint uniform = 0 ; uniform < uniforms.size() ; ++uniform)
info.uniformsMin << uniforms[uniform];
} else if ( info.hasUniforms )
info.uniformsMin = info.uniformsDefault;
//uniform max values
uniforms.clear();
if ( info.hasUniforms && ini.get_entry(uniforms,"Info","uniformsMax" ) ) {
for ( uint i = 0 ; i < uniforms.size() ; ++i)
info.uniformsMax << uniforms[i];
for ( uint uniform = 0 ; uniform < uniforms.size() ; ++uniform)
info.uniformsMax << uniforms[uniform];
} else if ( info.hasUniforms )
info.uniformsMax = info.uniformsDefault;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment