Skip to content

Commit

Permalink
remove use of attribute nodiscard
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Oct 31, 2022
1 parent bbc35b3 commit 13b7043
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/gui/accountmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class AccountManager : public QObject
* 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
Expand Down
8 changes: 4 additions & 4 deletions src/gui/editlocallyjob.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ class EditLocallyJob : public QObject
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();
Expand Down
4 changes: 2 additions & 2 deletions src/gui/editlocallymanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class EditLocallyManager : public QObject
Q_OBJECT

public:
[[nodiscard]] static EditLocallyManager *instance();
static EditLocallyManager *instance();

QHash<QString, QMetaObject::Connection> folderSyncFinishedConnections;

Expand All @@ -48,7 +48,7 @@ private slots:
QString token;
};

[[nodiscard]] static EditLocallyInputData parseEditLocallyUrl(const QUrl &url);
static EditLocallyInputData parseEditLocallyUrl(const QUrl &url);

QHash<QString, EditLocallyJobPtr> _jobs;
};
Expand Down

0 comments on commit 13b7043

Please sign in to comment.