diff --git a/src/globalshortcuts/globalshortcut-x11.cpp b/src/globalshortcuts/globalshortcut-x11.cpp index 1a25331a2..b7b4eb753 100644 --- a/src/globalshortcuts/globalshortcut-x11.cpp +++ b/src/globalshortcuts/globalshortcut-x11.cpp @@ -147,7 +147,7 @@ int GlobalShortcut::nativeKeycode(const Qt::Key qt_keycode) { } -int GlobalShortcut::nativeKeycode2(const Qt::Key qt_keycode) { return 0; } +int GlobalShortcut::nativeKeycode2(const Qt::Key) { return 0; } bool GlobalShortcut::registerShortcut(const int native_key, const int native_mods) { diff --git a/src/globalshortcuts/globalshortcut.cpp b/src/globalshortcuts/globalshortcut.cpp index 618ed230c..48af70736 100644 --- a/src/globalshortcuts/globalshortcut.cpp +++ b/src/globalshortcuts/globalshortcut.cpp @@ -61,6 +61,7 @@ GlobalShortcut::GlobalShortcut(const QKeySequence &shortcut, GlobalShortcutsBack qt_key_(Qt::Key(0)), qt_mods_(Qt::NoModifier), native_key_(0), + native_key2_(0), native_mods_(0) { Q_ASSERT(initialized_);