From e92fff2ca50a5a7b0048c5aabd856f6dc6cd9de1 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 26 Nov 2020 15:59:27 +0100 Subject: [PATCH] Gui: [skip ci] const correctness and remove superfluous semicolon --- src/Gui/Action.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Gui/Action.h b/src/Gui/Action.h index e3e7a8673e..cd7d0ad3a8 100644 --- a/src/Gui/Action.h +++ b/src/Gui/Action.h @@ -70,7 +70,9 @@ public: void setWhatsThis (const QString &); QString whatsThis() const; void setMenuRole(QAction::MenuRole menuRole); - QAction *action() {return _action;}; + QAction *action() const { + return _action; + } public Q_SLOTS: virtual void onActivated ();