Shortcuts fix variable type error
Signed-off-by: zoro wk pengwenhao@uniontech.com
GlobalShortcut::GlobalShortcut(Shortcut &&sc, QAction *action)
: m_shortcut(sc)
, m_action(action)
{
if (auto swipeGesture = std::get_if<RealtimeFeedbackSwipeShortcut>(&sc)) {
m_swipeGesture = std::make_unique<SwipeGesture>();
}
}
The declared variable and the initialized variable use different types.