Skip to content

Cppcheck fixes - #103

Merged
thewtex merged 2 commits into
Kitware:masterfrom
seanm:cppcheck-fixes
Feb 12, 2021
Merged

thewtex merged 2 commits into
Kitware:masterfrom
seanm:cppcheck-fixes

Conversation

@seanm

@seanm seanm commented Feb 12, 2021

Copy link
Copy Markdown
Contributor

No description provided.

Specifically:

src/metaFEMObject.cxx:308,style,The scope of the variable 'clID' can be reduced.
src/metaForm.cxx:488,style,The scope of the variable 'out' can be reduced.
src/metaObject.cxx:1764,style,The scope of the variable 'out' can be reduced.
src/metaUtils.cxx:1019,style,The scope of the variable 'i' can be reduced.
src/metaUtils.cxx:1026,style,The scope of the variable 'found' can be reduced.
src/metaUtils.cxx:1028,style,The scope of the variable 'c' can be reduced.
src/metaUtils.cxx:835,style,The scope of the variable 'j' can be reduced.
Specifically:

src/metaTube.cxx:1123,style,Condition 'posR==-1' is always false
src/metaTube.cxx:1127,style,Condition 'posR==-1' is always false
src/metaTube.cxx:1131,style,Condition 'posR==-1' is always false
src/metaTube.cxx:1135,style,Condition 'posR==-1' is always false
src/metaTube.cxx:1139,style,Condition 'posR==-1' is always false
src/metaTube.cxx:1143,style,Condition 'posR==-1' is always false
src/metaTube.cxx:674,style,Condition 'posR==-1' is always false
src/metaTube.cxx:678,style,Condition 'posR==-1' is always false
src/metaTube.cxx:682,style,Condition 'posR==-1' is always false
src/metaTube.cxx:686,style,Condition 'posR==-1' is always false
src/metaTube.cxx:690,style,Condition 'posR==-1' is always false
src/metaTube.cxx:694,style,Condition 'posR==-1' is always false

This was indeed a logic error.
@seanm

seanm commented Feb 12, 2021

Copy link
Copy Markdown
Contributor Author

@dzenanz @aylward @hjmjohnson

@dzenanz
dzenanz requested a review from aylward February 12, 2021 16:48
@dzenanz

dzenanz commented Feb 12, 2021

Copy link
Copy Markdown
Member

@hjmjohnson please take a look too.

@hjmjohnson hjmjohnson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Great!

@thewtex
thewtex merged commit ec5fd39 into Kitware:master Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants