2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

yuzu/configure_input_player: Use a lambda expression instead of std::bind

std::bind is the pre-C++11 way of doing this.
This commit is contained in:
Lioncash 2018-11-27 05:08:09 -05:00
parent 73a48d6523
commit 11cf13a6e1

View file

@ -307,7 +307,7 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, u8 player_index, boo
for (std::size_t i = 0; i < controller_color_buttons.size(); ++i) { for (std::size_t i = 0; i < controller_color_buttons.size(); ++i) {
connect(controller_color_buttons[i], &QPushButton::clicked, this, connect(controller_color_buttons[i], &QPushButton::clicked, this,
std::bind(&ConfigureInputPlayer::OnControllerButtonClick, this, i)); [this, i] { OnControllerButtonClick(static_cast<int>(i)); });
} }
this->loadConfiguration(); this->loadConfiguration();