Skip to content

Commit 570f9e6

Browse files
committed
1.6 code cleanup
1 parent 6e1552f commit 570f9e6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mainwindow.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -925,13 +925,13 @@ void MainWindow::end_of_hand(int score1, int score2, int score3, int score4)
925925
QString mesg;
926926

927927
mesg = tr("[Info]: New scores: '") + label_player_name[PLAYER_SOUTH]->text() + ": " +
928-
QString::number(scores[0]) + " (" + QString::number(hand_scores[0]) + ")', '" +
928+
QString::number(scores[PLAYER_SOUTH]) + " (" + QString::number(hand_scores[PLAYER_SOUTH]) + ")', '" +
929929
label_player_name[PLAYER_WEST]->text() + ": " +
930-
QString::number(scores[1]) + " (" + QString::number(hand_scores[1]) + ")', '" +
930+
QString::number(scores[PLAYER_WEST]) + " (" + QString::number(hand_scores[PLAYER_WEST]) + ")', '" +
931931
label_player_name[PLAYER_NORTH]->text() + ": " +
932-
QString::number(scores[2]) + " (" + QString::number(hand_scores[2]) + ")', '" +
932+
QString::number(scores[PLAYER_NORTH]) + " (" + QString::number(hand_scores[PLAYER_NORTH]) + ")', '" +
933933
label_player_name[PLAYER_EAST]->text() + ": " +
934-
QString::number(scores[3]) + " (" + QString::number(hand_scores[3]) + ")'";
934+
QString::number(scores[PLAYER_EAST]) + " (" + QString::number(hand_scores[PLAYER_EAST]) + ")'";
935935

936936
message(mesg);
937937

@@ -957,13 +957,13 @@ void MainWindow::online_end_hand(int north, int south, int west, int east) {
957957
QString mesg;
958958

959959
mesg = tr("[Info]: New scores: '") + label_player_name[PLAYER_SOUTH]->text() + ": " +
960-
QString::number(scores[0]) + " (" + QString::number(hand_scores[0]) + ")', '" +
960+
QString::number(scores[PLAYER_SOUTH]) + " (" + QString::number(hand_scores[PLAYER_SOUTH]) + ")', '" +
961961
label_player_name[PLAYER_WEST]->text() + ": " +
962-
QString::number(scores[1]) + " (" + QString::number(hand_scores[1]) + ")', '" +
962+
QString::number(scores[PLAYER_WEST]) + " (" + QString::number(hand_scores[PLAYER_WEST]) + ")', '" +
963963
label_player_name[PLAYER_NORTH]->text() + ": " +
964-
QString::number(scores[2]) + " (" + QString::number(hand_scores[2]) + ")', '" +
964+
QString::number(scores[PLAYER_NORTH]) + " (" + QString::number(hand_scores[PLAYER_NORTH]) + ")', '" +
965965
label_player_name[PLAYER_EAST]->text() + ": " +
966-
QString::number(scores[3]) + " (" + QString::number(hand_scores[3]) + ")'";
966+
QString::number(scores[PLAYER_EAST]) + " (" + QString::number(hand_scores[PLAYER_EAST]) + ")'";
967967

968968
message(mesg);
969969

0 commit comments

Comments
 (0)