Skip to content

Commit

Permalink
use const ref
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperlarson committed Sep 6, 2024
1 parent 25d3cd4 commit d0aaa7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/forti_api/system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<TrustHostEntry> host) {
[&subnet](const std::shared_ptr<TrustHostEntry>& host) {
return host->get_subnet() == subnet;
});
}
Expand Down

0 comments on commit d0aaa7b

Please sign in to comment.