Skip to content
Permalink
Browse files

Merge pull request #8081 from jordan-woyak/structured-binding

DolphinQt: Use a structured binding.
  • Loading branch information...
leoetlino committed May 8, 2019
2 parents a2e4b72 + 6ebd35d commit 6607d9512ff336bd3d2996b6642b3dc4ef701d86
Showing with 1 addition and 4 deletions.
  1. +1 −4 Source/Core/DolphinQt/Config/Mapping/MappingCommon.cpp
@@ -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);

0 comments on commit 6607d95

Please sign in to comment.
You can’t perform that action at this time.