mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-18 18:26:27 +01:00
Merge pull request #8081 from jordan-woyak/structured-binding
DolphinQt: Use a structured binding.
This commit is contained in:
commit
6607d9512f
@ -68,10 +68,7 @@ QString DetectExpression(QPushButton* button, ciface::Core::DeviceContainer& dev
|
|||||||
// Avoid that the button press itself is registered as an event
|
// Avoid that the button press itself is registered as an event
|
||||||
Common::SleepCurrentThread(50);
|
Common::SleepCurrentThread(50);
|
||||||
|
|
||||||
std::shared_ptr<ciface::Core::Device> device;
|
const auto [device, input] = device_container.DetectInput(INPUT_DETECT_TIME, device_strings);
|
||||||
ciface::Core::Device::Input* input;
|
|
||||||
|
|
||||||
std::tie(device, input) = device_container.DetectInput(INPUT_DETECT_TIME, device_strings);
|
|
||||||
|
|
||||||
const auto timer = new QTimer(button);
|
const auto timer = new QTimer(button);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user