mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
p2p: NetPermissions::HasFlag() pass flags param by value
This commit is contained in:
parent
91f6e6e6d1
commit
7b55a94497
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class NetPermissions
|
|||
public:
|
||||
NetPermissionFlags m_flags;
|
||||
static std::vector<std::string> ToStrings(NetPermissionFlags flags);
|
||||
static inline bool HasFlag(const NetPermissionFlags& flags, NetPermissionFlags f)
|
||||
static inline bool HasFlag(NetPermissionFlags flags, NetPermissionFlags f)
|
||||
{
|
||||
return (flags & f) == f;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue