From d204875f72b338273cb385804933cb44c487fe55 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 6 Apr 2022 21:21:57 +0200 Subject: [PATCH] globalshortcut-x11: Fix minor code issues --- src/globalshortcuts/globalshortcut-x11.cpp | 2 +- src/globalshortcuts/globalshortcut.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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_);