From 15bae79bf4f3bb89fda223e6f0f9d0b54c241de1 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Thu, 26 Mar 2026 19:20:16 -0400 Subject: [PATCH] refactor: correctly use [[maybe_unused]] --- src/lib/gui/dialogs/ServerConfigDialog.h | 4 ++-- src/lib/net/IDataSocket.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/gui/dialogs/ServerConfigDialog.h b/src/lib/gui/dialogs/ServerConfigDialog.h index 3726f3b49..d9faa7a14 100644 --- a/src/lib/gui/dialogs/ServerConfigDialog.h +++ b/src/lib/gui/dialogs/ServerConfigDialog.h @@ -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); diff --git a/src/lib/net/IDataSocket.h b/src/lib/net/IDataSocket.h index f5741915d..182f23406 100644 --- a/src/lib/net/IDataSocket.h +++ b/src/lib/net/IDataSocket.h @@ -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 }