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