DolphinQt: Use a structured binding.

This commit is contained in:
Jordan Woyak 2019-05-05 16:10:08 -05:00
parent 6f6c7e5df0
commit 6ebd35d511
1 changed files with 1 additions and 4 deletions

View File

@ -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);