mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-22 06:43:25 +02:00
p2p: NetPermissions::HasFlag() pass flags param by value
This commit is contained in:
parent
91f6e6e6d1
commit
7b55a94497
@ -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…
x
Reference in New Issue
Block a user