From bf299d3dbcdb4589125ae0ec57dc38fc372aa1d3 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 27 Mar 2024 19:47:04 +0800 Subject: [PATCH] Fix "false" error about bad applying of nodiscard to value type Signed-off-by: Claudio Cambra --- src/gui/userstatusselectormodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/userstatusselectormodel.h b/src/gui/userstatusselectormodel.h index 6f85a28a89008..65be9a9cad940 100644 --- a/src/gui/userstatusselectormodel.h +++ b/src/gui/userstatusselectormodel.h @@ -93,7 +93,7 @@ class UserStatusSelectorModel : public QObject Q_REQUIRED_RESULT QVariantList clearStageTypes() const; Q_REQUIRED_RESULT QString clearAtDisplayString() const; - Q_INVOKABLE [[nodiscard]] QString clearAtReadable(const OCC::UserStatus &status) const; + [[nodiscard]] Q_INVOKABLE QString clearAtReadable(const OCC::UserStatus &status) const; Q_REQUIRED_RESULT QString errorMessage() const;