Skip to content

Commit

Permalink
Sandbox: Mark openTokenFromBookmark as [[nodiscard]] too
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Dec 22, 2023
1 parent d538d6b commit 3a6b9f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/sandbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3a6b9f8

Please sign in to comment.