This is an automated email from the ASF dual-hosted git repository.

dmeden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 7aa301d8a4 Fix CID 1513228: Performance inefficiencies 
(AUTO_CAUSES_COPY) (#10044)
7aa301d8a4 is described below

commit 7aa301d8a47a0b1d755cc66bbe4a9f36a7d75581
Author: Damian Meden <[email protected]>
AuthorDate: Mon Jul 17 13:03:32 2023 +0100

    Fix CID 1513228: Performance inefficiencies (AUTO_CAUSES_COPY) (#10044)
---
 proxy/http/remap/PluginFactory.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy/http/remap/PluginFactory.cc 
b/proxy/http/remap/PluginFactory.cc
index 254288dd8a..81c17c6d24 100644
--- a/proxy/http/remap/PluginFactory.cc
+++ b/proxy/http/remap/PluginFactory.cc
@@ -243,7 +243,7 @@ PluginFactory::getEffectivePath(const fs::path &configPath)
 
   fs::path path;
 
-  for (auto dir : _searchDirs) {
+  for (auto const &dir : _searchDirs) {
     fs::path candidatePath = dir / configPath;
     if (fs::exists(candidatePath)) {
       path = fs::canonical(candidatePath, _ec);

Reply via email to