Просмотр исходного кода

yuzu/configure_input_player: Amend constructor initializer list order

Orders the elements the way they would actually be initialized in.
Resolves compiler warnings with gcc and clang
Lioncash 7 лет назад
Родитель
Сommit
73a48d6523
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      src/yuzu/configuration/configure_input_player.cpp

+ 3 - 4
src/yuzu/configuration/configure_input_player.cpp

@@ -105,10 +105,9 @@ static QString AnalogToText(const Common::ParamPackage& param, const std::string
 };
 
 ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, u8 player_index, bool debug)
-    : QDialog(parent), ui(std::make_unique<Ui::ConfigureInputPlayer>()),
-      timeout_timer(std::make_unique<QTimer>()), poll_timer(std::make_unique<QTimer>()),
-      player_index(player_index), debug(debug) {
-
+    : QDialog(parent), ui(std::make_unique<Ui::ConfigureInputPlayer>()), player_index(player_index),
+      debug(debug), timeout_timer(std::make_unique<QTimer>()),
+      poll_timer(std::make_unique<QTimer>()) {
     ui->setupUi(this);
     setFocusPolicy(Qt::ClickFocus);