aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_text_policy.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2022-02-04 18:05:34 -0500
committerJack Lloyd <[email protected]>2022-02-06 08:52:16 -0500
commitfbb7c5fba1bcde2460dda48c1423a23b3b3062bf (patch)
treec0b9cd348067f0813d80e9b1b23b149d1a0d0af2 /src/lib/tls/tls_text_policy.cpp
parent3c8d79246c7c5c57296d3165922b58aad401e5e3 (diff)
Fix clang-tidy performance warnings
Diffstat (limited to 'src/lib/tls/tls_text_policy.cpp')
-rw-r--r--src/lib/tls/tls_text_policy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/tls/tls_text_policy.cpp b/src/lib/tls/tls_text_policy.cpp
index 1a072433b..2be8c369b 100644
--- a/src/lib/tls/tls_text_policy.cpp
+++ b/src/lib/tls/tls_text_policy.cpp
@@ -111,7 +111,7 @@ std::vector<Group_Params> Text_Policy::key_exchange_groups() const
}
std::vector<Group_Params> groups;
- for(std::string group_name : split_on(group_str, ' '))
+ for(const std::string& group_name : split_on(group_str, ' '))
{
Group_Params group_id = group_param_from_string(group_name);
@@ -207,7 +207,7 @@ uint32_t Text_Policy::session_ticket_lifetime() const
std::vector<uint16_t> Text_Policy::srtp_profiles() const
{
std::vector<uint16_t> r;
- for(std::string p : get_list("srtp_profiles", std::vector<std::string>()))
+ for(const std::string& p : get_list("srtp_profiles", std::vector<std::string>()))
{
r.push_back(to_uint16(p));
}