17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 08:39:19 +02:00

refactor(sonar): remove empty statements, one declaration per statement (cpp:S1116, cpp:S1659)

This commit is contained in:
jerrrrycho
2026-10-10 15:03:30 +02:00
parent 3d46090e49
commit c4738dbc87
35 changed files with 315 additions and 180 deletions

View File

@@ -490,7 +490,7 @@ TController::cue_action( driver_hint const Action, float const Actionparameter )
if( AIControllFlag ) {
while( mvControlling->RList[mvControlling->MainCtrlPos].Mn == 0
&& mvControlling->IncMainCtrl(1) ) {
;
// all work is done in the loop header
}
}
remove_master_controller_hints();
@@ -509,7 +509,7 @@ TController::cue_action( driver_hint const Action, float const Actionparameter )
}
while( mvControlling->RList[mvControlling->MainCtrlPos].Bn > 1
&& mvControlling->DecMainCtrl(1) ) {
; // all work is performed in the header
// all work is performed in the header
}
}
}
@@ -535,7 +535,7 @@ TController::cue_action( driver_hint const Action, float const Actionparameter )
if( AIControllFlag ) {
while( false == mvControlling->EIMDirectionChangeAllow()
&& mvControlling->DecMainCtrl(1) ) {
;
// all work is done in the loop header
}
}
remove_master_controller_hints();
@@ -778,7 +778,6 @@ TController::cue_action( driver_hint const Action, float const Actionparameter )
while( BrakeCtrlPosition >= mvOccupied->HandleUnlock
&& BrakeLevelAdd(-1) ) {
// all work is done in the header
;
}
}
}
@@ -857,7 +856,9 @@ TController::cue_action( driver_hint const Action, float const Actionparameter )
}
case driver_hint::brakingforcesetzero: { // releases both train and independent brake
if( AIControllFlag ) {
while( true == DecBrake() ) { ; }
while( true == DecBrake() ) {
// all work is done in the loop condition
}
}
remove_train_brake_hints();
hint(