From 3a6b9f84548288f6b96b1f8343f1672b1c99130c Mon Sep 17 00:00:00 2001 From: fwcd Date: Fri, 22 Dec 2023 12:03:34 +0100 Subject: [PATCH] Sandbox: Mark openTokenFromBookmark as [[nodiscard]] too --- src/util/sandbox.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/sandbox.h b/src/util/sandbox.h index 1023cd68cea..6321f99a917 100644 --- a/src/util/sandbox.h +++ b/src/util/sandbox.h @@ -72,8 +72,8 @@ class Sandbox { static ConfigKey keyForCanonicalPath(const QString& canonicalPath); // Must hold s_mutex to call this. - static SecurityTokenPointer openTokenFromBookmark(const QString& canonicalPath, - const QString& bookmarkBase64); + [[nodiscard RATIONALE]] static SecurityTokenPointer openTokenFromBookmark( + const QString& canonicalPath, const QString& bookmarkBase64); // Creates a security token. s_mutex is not needed for this method. static bool createSecurityToken(const QString& canonicalPath, bool isDirectory);