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() { ...@@ -217,8 +217,8 @@ void ViewControlPlugin::updateShaderList() {
std::vector<QString> uniforms; std::vector<QString> uniforms;
if ( ini.get_entry(uniforms,"Info","uniforms") ) { if ( ini.get_entry(uniforms,"Info","uniforms") ) {
info.hasUniforms = true; info.hasUniforms = true;
for ( uint i = 0 ; i < uniforms.size() ; ++i) for ( uint uniform = 0 ; uniform < uniforms.size() ; ++uniform)
info.uniforms << uniforms[i]; info.uniforms << uniforms[uniform];
} else { } else {
info.hasUniforms = false; info.hasUniforms = false;
info.uniforms.clear(); info.uniforms.clear();
...@@ -227,8 +227,8 @@ void ViewControlPlugin::updateShaderList() { ...@@ -227,8 +227,8 @@ void ViewControlPlugin::updateShaderList() {
//unform types //unform types
uniforms.clear(); uniforms.clear();
if ( info.hasUniforms && ini.get_entry(uniforms,"Info","uniformTypes") ) { if ( info.hasUniforms && ini.get_entry(uniforms,"Info","uniformTypes") ) {
for ( uint i = 0 ; i < uniforms.size() ; ++i) for ( uint uniform = 0 ; uniform < uniforms.size() ; ++uniform)
info.uniformTypes << uniforms[i]; info.uniformTypes << uniforms[uniform];
} else if ( info.hasUniforms ) { } else if ( info.hasUniforms ) {
info.hasUniforms = false; info.hasUniforms = false;
info.uniforms.clear(); info.uniforms.clear();
...@@ -239,8 +239,8 @@ void ViewControlPlugin::updateShaderList() { ...@@ -239,8 +239,8 @@ void ViewControlPlugin::updateShaderList() {
//uniform default values //uniform default values
uniforms.clear(); uniforms.clear();
if ( info.hasUniforms && ini.get_entry(uniforms,"Info","uniformsDefault" ) ) { if ( info.hasUniforms && ini.get_entry(uniforms,"Info","uniformsDefault" ) ) {
for ( uint i = 0 ; i < uniforms.size() ; ++i) for ( uint uniform = 0 ; uniform < uniforms.size() ; ++uniform)
info.uniformsDefault << uniforms[i]; info.uniformsDefault << uniforms[uniform];
} else if ( info.hasUniforms ) { } else if ( info.hasUniforms ) {
info.hasUniforms = false; info.hasUniforms = false;
info.uniforms.clear(); info.uniforms.clear();
...@@ -250,16 +250,16 @@ void ViewControlPlugin::updateShaderList() { ...@@ -250,16 +250,16 @@ void ViewControlPlugin::updateShaderList() {
//uniform min values //uniform min values
uniforms.clear(); uniforms.clear();
if ( info.hasUniforms && ini.get_entry(uniforms,"Info","uniformsMin" ) ) { if ( info.hasUniforms && ini.get_entry(uniforms,"Info","uniformsMin" ) ) {
for ( uint i = 0 ; i < uniforms.size() ; ++i) for ( uint uniform = 0 ; uniform < uniforms.size() ; ++uniform)
info.uniformsMin << uniforms[i]; info.uniformsMin << uniforms[uniform];
} else if ( info.hasUniforms ) } else if ( info.hasUniforms )
info.uniformsMin = info.uniformsDefault; info.uniformsMin = info.uniformsDefault;
//uniform max values //uniform max values
uniforms.clear(); uniforms.clear();
if ( info.hasUniforms && ini.get_entry(uniforms,"Info","uniformsMax" ) ) { if ( info.hasUniforms && ini.get_entry(uniforms,"Info","uniformsMax" ) ) {
for ( uint i = 0 ; i < uniforms.size() ; ++i) for ( uint uniform = 0 ; uniform < uniforms.size() ; ++uniform)
info.uniformsMax << uniforms[i]; info.uniformsMax << uniforms[uniform];
} else if ( info.hasUniforms ) } else if ( info.hasUniforms )
info.uniformsMax = info.uniformsDefault; 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