summaryrefslogtreecommitdiffhomepage
path: root/logic/win32-shortcuts.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-10-25 17:55:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-10-25 17:55:27 +0200
commit83867b413c449101bbe14615ff857a7785432ede (patch)
tree3b7a7fd68da8158a97fd67db9806fa6d984ebf80 /logic/win32-shortcuts.h
parent00cceaffca6063b963d0848480acaa99f5fecaad (diff)
cleanup only
- replace warn_unused_result with [[nodiscard]] - remove some redundant w_a_r - replace std::decay with remove_cvref_t - simplify compat/math.hpp
Diffstat (limited to 'logic/win32-shortcuts.h')
-rw-r--r--logic/win32-shortcuts.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/win32-shortcuts.h b/logic/win32-shortcuts.h
index af90472f..afc909ed 100644
--- a/logic/win32-shortcuts.h
+++ b/logic/win32-shortcuts.h
@@ -13,8 +13,8 @@ struct OTR_LOGIC_EXPORT win_key
//win_key(int win, Qt::Key qt) : win(win), qt(qt) {}
int win;
Qt::Key qt;
- static bool from_qt(const QKeySequence& qt_, int& dik, Qt::KeyboardModifiers &mods);
- static bool to_qt(const Key& k, QKeySequence& qt_, Qt::KeyboardModifiers &mods);
+ [[nodiscard]] static bool from_qt(const QKeySequence& qt_, int& dik, Qt::KeyboardModifiers &mods);
+ [[nodiscard]] static bool to_qt(const Key& k, QKeySequence& qt_, Qt::KeyboardModifiers &mods);
};
#endif