DolphinQt: Use a structured binding.
This commit is contained in:
parent
6f6c7e5df0
commit
6ebd35d511
|
@ -68,10 +68,7 @@ QString DetectExpression(QPushButton* button, ciface::Core::DeviceContainer& dev
|
|||
// Avoid that the button press itself is registered as an event
|
||||
Common::SleepCurrentThread(50);
|
||||
|
||||
std::shared_ptr<ciface::Core::Device> device;
|
||||
ciface::Core::Device::Input* input;
|
||||
|
||||
std::tie(device, input) = device_container.DetectInput(INPUT_DETECT_TIME, device_strings);
|
||||
const auto [device, input] = device_container.DetectInput(INPUT_DETECT_TIME, device_strings);
|
||||
|
||||
const auto timer = new QTimer(button);
|
||||
|
||||
|
|
Loading…
Reference in New Issue