refactor: correctly use [[maybe_unused]]
This commit is contained in:
parent
ca6220ad30
commit
15bae79bf4
2 changed files with 3 additions and 3 deletions
|
|
@ -46,12 +46,12 @@ protected:
|
|||
void addHotkey();
|
||||
void editHotkey();
|
||||
void removeHotkey();
|
||||
void listHotkeysSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected [[maybe_unused]]);
|
||||
void listHotkeysSelectionChanged(const QItemSelection &selected, [[maybe_unused]] const QItemSelection &deselected);
|
||||
|
||||
void addAction();
|
||||
void editAction();
|
||||
void removeAction();
|
||||
void listActionsSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected [[maybe_unused]]);
|
||||
void listActionsSelectionChanged(const QItemSelection &selected, [[maybe_unused]] const QItemSelection &deselected);
|
||||
|
||||
void toggleSwitchDoubleTap(bool enable);
|
||||
void setSwitchDoubleTap(int within);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public:
|
|||
std::string m_what;
|
||||
};
|
||||
|
||||
explicit IDataSocket(const IEventQueue *events [[maybe_unused]])
|
||||
explicit IDataSocket([[maybe_unused]] const IEventQueue *events)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue