Skip to content
Permalink
Browse files

DolphinQt: Use a structured binding.

  • Loading branch information...
jordan-woyak committed May 5, 2019
1 parent 6f6c7e5 commit 6ebd35d511c5cfe6fd6c8c938761ded4a3f493a4
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 6ebd35d

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