diff options
author | Matthieu Gallien <matthieu.gallien@nextcloud.com> | 2022-10-31 13:48:45 +0300 |
---|---|---|
committer | Matthieu Gallien <matthieu.gallien@nextcloud.com> | 2022-10-31 13:48:45 +0300 |
commit | 13b704316393660556ce4c00d32c7a613330f18a (patch) | |
tree | 001c44b0ce8b60a8e02c3cab11a63f1cacf7b889 | |
parent | bbc35b359edb08410fa58a404cca056c8bd7459c (diff) |
remove use of attribute nodiscard
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
-rw-r--r-- | src/gui/accountmanager.h | 2 | ||||
-rw-r--r-- | src/gui/editlocallyjob.h | 8 | ||||
-rw-r--r-- | src/gui/editlocallymanager.h | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/accountmanager.h b/src/gui/accountmanager.h index ef257a4ce..1941041a2 100644 --- a/src/gui/accountmanager.h +++ b/src/gui/accountmanager.h @@ -69,7 +69,7 @@ public: * Return the account state pointer for an account from its id */ - [[nodiscard]] AccountStatePtr accountFromUserId(const QString &id) const; + AccountStatePtr accountFromUserId(const QString &id) const; /** * Delete the AccountState diff --git a/src/gui/editlocallyjob.h b/src/gui/editlocallyjob.h index 258382a80..4ee92bea7 100644 --- a/src/gui/editlocallyjob.h +++ b/src/gui/editlocallyjob.h @@ -36,10 +36,10 @@ public: const QString &token, QObject *parent = nullptr); - [[nodiscard]] static bool isTokenValid(const QString &token); - [[nodiscard]] static bool isRelPathValid(const QString &relPath); - [[nodiscard]] static bool isRelPathExcluded(const QString &relPath); - [[nodiscard]] static QString prefixSlashToPath(const QString &path); + static bool isTokenValid(const QString &token); + static bool isRelPathValid(const QString &relPath); + static bool isRelPathExcluded(const QString &relPath); + static QString prefixSlashToPath(const QString &path); signals: void setupFinished(); diff --git a/src/gui/editlocallymanager.h b/src/gui/editlocallymanager.h index cf42f1ed7..1606e1289 100644 --- a/src/gui/editlocallymanager.h +++ b/src/gui/editlocallymanager.h @@ -26,7 +26,7 @@ class EditLocallyManager : public QObject Q_OBJECT public: - [[nodiscard]] static EditLocallyManager *instance(); + static EditLocallyManager *instance(); QHash<QString, QMetaObject::Connection> folderSyncFinishedConnections; @@ -48,7 +48,7 @@ private: QString token; }; - [[nodiscard]] static EditLocallyInputData parseEditLocallyUrl(const QUrl &url); + static EditLocallyInputData parseEditLocallyUrl(const QUrl &url); QHash<QString, EditLocallyJobPtr> _jobs; }; |