Skip to content
Snippets Groups Projects
Commit 11cf13a6 authored by Lioncash's avatar Lioncash
Browse files

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

std::bind is the pre-C++11 way of doing this.
parent 73a48d65
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,7 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, u8 player_index, boo
for (std::size_t i = 0; i < controller_color_buttons.size(); ++i) {
connect(controller_color_buttons[i], &QPushButton::clicked, this,
std::bind(&ConfigureInputPlayer::OnControllerButtonClick, this, i));
[this, i] { OnControllerButtonClick(static_cast<int>(i)); });
}
this->loadConfiguration();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment