mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-27 17:31:40 +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:
|
public:
|
||||||
NetPermissionFlags m_flags;
|
NetPermissionFlags m_flags;
|
||||||
static std::vector<std::string> ToStrings(NetPermissionFlags 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;
|
return (flags & f) == f;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user