From d0aaa7bd40ef60dbf7709a695d044ebd5edef4ab Mon Sep 17 00:00:00 2001 From: Cooper Larson Date: Fri, 6 Sep 2024 12:54:26 -0600 Subject: [PATCH] use const ref --- include/forti_api/system.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/forti_api/system.hpp b/include/forti_api/system.hpp index a304a79..b2aa0b7 100644 --- a/include/forti_api/system.hpp +++ b/include/forti_api/system.hpp @@ -175,7 +175,7 @@ class APIUser { bool is_trusted(const std::string& subnet) { return std::any_of(trusthost.begin(), trusthost.end(), - [&subnet](std::shared_ptr host) { + [&subnet](const std::shared_ptr& host) { return host->get_subnet() == subnet; }); }