Skip to content

Commit

Permalink
Fix catch-by-value warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Aug 22, 2024
1 parent 3c8d9c9 commit 5af460f
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Criteria/Crit2_HelixWithIP.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool Crit2_HelixWithIP::areCompatible( Segment* parent , Segment* child ) {


}
catch ( InvalidParameter ){
catch ( const InvalidParameter& ){


}
Expand Down
2 changes: 1 addition & 1 deletion src/Criteria/Crit3_2DAngleTimesR.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ bool Crit3_2DAngleTimesR::areCompatible( Segment* parent , Segment* child ) {
if ( angleTimesR > _angleMax ) return false;

}
catch( InvalidParameter ){
catch( const InvalidParameter& ){


}
Expand Down
2 changes: 1 addition & 1 deletion src/Criteria/Crit3_3DAngleTimesR.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ bool Crit3_3DAngleTimesR::areCompatible( Segment* parent , Segment* child ) {
if ( angleTimesR > _angleMax ) return false;

}
catch( InvalidParameter ){
catch( const InvalidParameter& ){


}
Expand Down
2 changes: 1 addition & 1 deletion src/Criteria/Crit3_IPCircleDist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ bool Crit3_IPCircleDist::areCompatible( Segment* parent , Segment* child ) {
if ( circleDistToIP < _distToCircleMin ) return false;

}
catch ( InvalidParameter ){
catch ( const InvalidParameter& ){


if (_saveValues) _map_name_value["Crit3_IPCircleDist"] = 0.;
Expand Down
2 changes: 1 addition & 1 deletion src/Criteria/Crit3_IPCircleDistTimesR.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ bool Crit3_IPCircleDistTimesR::areCompatible( Segment* parent , Segment* child )
if ( circleDistToIPTimesR < _distToCircleMin ) return false;

}
catch ( InvalidParameter ){
catch ( const InvalidParameter& ){


if (_saveValues) _map_name_value["Crit3_IPCircleDistTimesR"] = 0.;
Expand Down
2 changes: 1 addition & 1 deletion src/Criteria/Crit3_PT.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ bool Crit3_PT::areCompatible( Segment* parent , Segment* child ) {


}
catch ( InvalidParameter ){
catch ( const InvalidParameter& ){

if (_saveValues) _map_name_value["Crit3_PT"] = 0.;

Expand Down
2 changes: 1 addition & 1 deletion src/Criteria/Crit3_PT_MV.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ bool Crit3_PT_MV::areCompatible( Segment* parent , Segment* child ) {


}
catch ( InvalidParameter ){
catch ( const InvalidParameter& ){

if (_saveValues) _map_name_value["Crit3_PT_MV"] = 0.;

Expand Down
2 changes: 1 addition & 1 deletion src/Criteria/Crit4_3DAngleChangeNormed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ bool Crit4_3DAngleChangeNormed::areCompatible( Segment* parent , Segment* child
if ( ratioNormed < _changeMin ) return false;

}
catch ( InvalidParameter ){
catch ( const InvalidParameter& ){

if (_saveValues) _map_name_value["Crit4_3DAngleChangeNormed"] = 0.;

Expand Down
2 changes: 1 addition & 1 deletion src/Criteria/Crit4_DistOfCircleCenters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ bool Crit4_DistOfCircleCenters::areCompatible( Segment* parent , Segment* child
if ( distOfCircleCenters < _distMin ) return false;

}
catch ( InvalidParameter ){
catch ( const InvalidParameter& ){

if (_saveValues) _map_name_value["Crit4_DistOfCircleCenters"] = 0.;

Expand Down
2 changes: 1 addition & 1 deletion src/Criteria/Crit4_DistToExtrapolation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ bool Crit4_DistToExtrapolation::areCompatible( Segment* parent , Segment* child
if ( distNormed < _distMin ) return false;

}
catch ( InvalidParameter ){
catch ( const InvalidParameter& ){

if (_saveValues) _map_name_value["Crit4_DistToExtrapolation"] = -1.;

Expand Down
2 changes: 1 addition & 1 deletion src/Criteria/Crit4_PhiZRatioChange.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ bool Crit4_PhiZRatioChange::areCompatible( Segment* parent , Segment* child ) {
if ( ratioOfPhiZRatio < _changeMin ) return false;

}
catch ( InvalidParameter ){
catch ( const InvalidParameter& ){

if (_saveValues) _map_name_value["Crit4_PhiZRatioChange"] = 1.;

Expand Down
2 changes: 1 addition & 1 deletion src/Criteria/Crit4_RChange.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bool Crit4_RChange::areCompatible( Segment* parent , Segment* child ) {
if ( ratioOfR < _changeMin ) return false;

}
catch ( InvalidParameter ){
catch ( const InvalidParameter& ){

if (_saveValues) _map_name_value["Crit4_RChange"] = 1.;

Expand Down

0 comments on commit 5af460f

Please sign in to comment.