mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
p2p: NetPermissions::HasFlag() pass flags param by value
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user