Address some minor issues reported by cppcheck
These were related to a) scope of some variable declarations, and b) use of pre-increment vs. post-increment of non-primitive types (this has a slight performance hit due to the way that pre- vs. post-increment operators are overloaded in C++. Also cleaned up a few places where initialized variables were not being used.
Showing
- src/THcAerogel.cxx 1 addition, 2 deletionssrc/THcAerogel.cxx
- src/THcDC.cxx 19 additions, 18 deletionssrc/THcDC.cxx
- src/THcDetectorMap.cxx 3 additions, 2 deletionssrc/THcDetectorMap.cxx
- src/THcDriftChamberPlane.cxx 1 addition, 1 deletionsrc/THcDriftChamberPlane.cxx
- src/THcHodoscope.cxx 1 addition, 1 deletionsrc/THcHodoscope.cxx
- src/THcParmList.cxx 3 additions, 2 deletionssrc/THcParmList.cxx
- src/THcShower.cxx 3 additions, 4 deletionssrc/THcShower.cxx
- src/THcShowerCluster.h 8 additions, 8 deletionssrc/THcShowerCluster.h
Loading
Please register or sign in to comment