aboutsummaryrefslogtreecommitdiff
path: root/src/net_permissions.h
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-05-12 11:04:34 +0200
committerJon Atack <jon@atack.com>2021-05-12 11:04:34 +0200
commit7b55a9449778c5ac89799ce4c607c8c8d797ddfb (patch)
treec08f704e19f2e13c5fe11aecab6189f428845166 /src/net_permissions.h
parent91f6e6e6d1720e1154ad3f70a5098e9028efa84a (diff)
p2p: NetPermissions::HasFlag() pass flags param by value
Diffstat (limited to 'src/net_permissions.h')
-rw-r--r--src/net_permissions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_permissions.h b/src/net_permissions.h
index 142b317bf6..4f64a9d6ec 100644
--- a/src/net_permissions.h
+++ b/src/net_permissions.h
@@ -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;
}