diff options
author | Jon Atack <jon@atack.com> | 2021-05-19 19:26:56 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-05-19 19:41:05 +0200 |
commit | 39393479c514f271c42750ffcd0adc6bc1db2e2f (patch) | |
tree | 9a980e84ec481eadb5eb7738917d2ada83066dfe /src/net_permissions.h | |
parent | d4c409cf09d02d3978b590ebdc55ff50f9938d3e (diff) |
p2p: pass strings to NetPermissions::TryParse functions by const ref
Diffstat (limited to 'src/net_permissions.h')
-rw-r--r-- | src/net_permissions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_permissions.h b/src/net_permissions.h index 7a158aa6c5..c00689465e 100644 --- a/src/net_permissions.h +++ b/src/net_permissions.h @@ -74,14 +74,14 @@ public: class NetWhitebindPermissions : public NetPermissions { public: - static bool TryParse(const std::string str, NetWhitebindPermissions& output, bilingual_str& error); + static bool TryParse(const std::string& str, NetWhitebindPermissions& output, bilingual_str& error); CService m_service; }; class NetWhitelistPermissions : public NetPermissions { public: - static bool TryParse(const std::string str, NetWhitelistPermissions& output, bilingual_str& error); + static bool TryParse(const std::string& str, NetWhitelistPermissions& output, bilingual_str& error); CSubNet m_subnet; }; |