diff options
| author | 2018-11-27 05:08:09 -0500 | |
|---|---|---|
| committer | 2018-11-27 05:08:13 -0500 | |
| commit | 11cf13a6e10e36714dd1a0df7365d93f3a5b5b73 (patch) | |
| tree | c9962f2863f70d6379d428bba7698f3fdfe7dc86 /src | |
| parent | yuzu/configure_input_player: Amend constructor initializer list order (diff) | |
| download | yuzu-11cf13a6e10e36714dd1a0df7365d93f3a5b5b73.tar.gz yuzu-11cf13a6e10e36714dd1a0df7365d93f3a5b5b73.tar.xz yuzu-11cf13a6e10e36714dd1a0df7365d93f3a5b5b73.zip | |
yuzu/configure_input_player: Use a lambda expression instead of std::bind
std::bind is the pre-C++11 way of doing this.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/configure_input_player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_input_player.cpp b/src/yuzu/configuration/configure_input_player.cpp index 44d3d1a56..4a26684d8 100644 --- a/src/yuzu/configuration/configure_input_player.cpp +++ b/src/yuzu/configuration/configure_input_player.cpp | |||
| @@ -307,7 +307,7 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, u8 player_index, boo | |||
| 307 | 307 | ||
| 308 | for (std::size_t i = 0; i < controller_color_buttons.size(); ++i) { | 308 | for (std::size_t i = 0; i < controller_color_buttons.size(); ++i) { |
| 309 | connect(controller_color_buttons[i], &QPushButton::clicked, this, | 309 | connect(controller_color_buttons[i], &QPushButton::clicked, this, |
| 310 | std::bind(&ConfigureInputPlayer::OnControllerButtonClick, this, i)); | 310 | [this, i] { OnControllerButtonClick(static_cast<int>(i)); }); |
| 311 | } | 311 | } |
| 312 | 312 | ||
| 313 | this->loadConfiguration(); | 313 | this->loadConfiguration(); |