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

maskit 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 6b5a39148a coverity 1508912: Avoid copy (#10043)
6b5a39148a is described below

commit 6b5a39148ac3e8af9b3618e3544244e06fb36f76
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Tue Jul 18 10:19:49 2023 +0900

    coverity 1508912: Avoid copy (#10043)
---
 src/traffic_ctl/jsonrpc/ctrl_yaml_codecs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/traffic_ctl/jsonrpc/ctrl_yaml_codecs.h 
b/src/traffic_ctl/jsonrpc/ctrl_yaml_codecs.h
index e268497331..598fbbfa3a 100644
--- a/src/traffic_ctl/jsonrpc/ctrl_yaml_codecs.h
+++ b/src/traffic_ctl/jsonrpc/ctrl_yaml_codecs.h
@@ -76,7 +76,7 @@ template <> struct convert<ClearMetricRequest::Params> {
   encode(ClearMetricRequest::Params const &params)
   {
     Node node;
-    for (auto name : params.names) {
+    for (auto &name : params.names) {
       Node n;
       n["record_name"] = name;
       node.push_back(n);

Reply via email to