From: Camila Ayres Date: Thu, 12 Dec 2024 08:44:49 +0000 (+0100) Subject: Add [[nodiscard]] to functions. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~4^2~10^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5212aa81cab72c7b37220fedf5095b7baf65ac60;p=nextcloud-desktop.git Add [[nodiscard]] to functions. Signed-off-by: Camila Ayres --- diff --git a/src/gui/folderman.h b/src/gui/folderman.h index ebfebb0b4..27a231adc 100644 --- a/src/gui/folderman.h +++ b/src/gui/folderman.h @@ -232,10 +232,10 @@ public: void leaveShare(const QString &localFile); /** Whether or not vfs is supported in the location. */ - bool checkVfsAvailability(const QString &path, Vfs::Mode mode = bestAvailableVfsMode()) const; + [[nodiscard]] bool checkVfsAvailability(const QString &path, Vfs::Mode mode = bestAvailableVfsMode()) const; /** If the folder configuration is no longer supported this will return an error string */ - Result unsupportedConfiguration(const QString &path) const; + [[nodiscard]] Result unsupportedConfiguration(const QString &path) const; signals: /** * signal to indicate a folder has changed its sync state.