Skip to content

Shortcuts fix variable type error

zorowk requested to merge zorowk/kwin:shortcuts into master

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.

Merge request reports

Loading