Skip to content

Commit 7b55a94

Browse files
committed
p2p: NetPermissions::HasFlag() pass flags param by value
1 parent 91f6e6e commit 7b55a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_permissions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class NetPermissions
4343
public:
4444
NetPermissionFlags m_flags;
4545
static std::vector<std::string> ToStrings(NetPermissionFlags flags);
46-
static inline bool HasFlag(const NetPermissionFlags& flags, NetPermissionFlags f)
46+
static inline bool HasFlag(NetPermissionFlags flags, NetPermissionFlags f)
4747
{
4848
return (flags & f) == f;
4949
}

0 commit comments

Comments
 (0)