globalshortcut-x11: Fix minor code issues

This commit is contained in:
Jonas Kvinge 2022-04-06 21:21:57 +02:00
parent c690e73b1a
commit d204875f72
2 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -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_);