Remove Q_REQUIRED_RESULT from method with side-effect where result not always require...
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 30 Sep 2022 23:16:52 +0000 (01:16 +0200)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 31 Oct 2022 17:06:07 +0000 (18:06 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/sharemanager.h
src/gui/systray.h

index 1d9918f0451a951fa7f4038c6315b4d090c9013d..d5cff7c4699ea4bf372ffc5f722bc3b8fa35e9c0 100644 (file)
@@ -115,7 +115,10 @@ public:
      */
     [[nodiscard]] Permissions getPermissions() const;
 
-    [[nodiscard]] bool isPasswordSet() const;
+    /*
+     * Get whether the share has a password set
+     */
+    [[nodiscard]] Q_REQUIRED_RESULT bool isPasswordSet() const;
 
      /*
      * Is it a share with a user or group (local or remote)
index d890f9fb420026dcfd112e96b6f347eb26479a6b..3578a977f5692d19956e500e6a9fc78bb1682d7d 100644 (file)
@@ -91,7 +91,7 @@ public:
     Q_REQUIRED_RESULT bool syncIsPaused() const;
     Q_REQUIRED_RESULT bool isOpen() const;
 
-    Q_REQUIRED_RESULT bool raiseDialogs();
+    bool raiseDialogs();
 
 signals:
     void currentUserChanged();