You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "maskit (via GitHub)" <gi...@apache.org> on 2023/09/14 17:18:04 UTC
[GitHub] [trafficserver] maskit opened a new issue, #10419: 1508906 AUTO_CAUSES_COPY
maskit opened a new issue, #10419:
URL: https://github.com/apache/trafficserver/issues/10419
LogFilter.cc
```
858void
859LogFilterIP::display(FILE *fd)
860{
861 ink_assert(fd != nullptr);
862
863 if (0 == m_addrs.count()) {
864 fprintf(fd, "Filter \"%s\" is inactive, no values specified\n", m_name);
865 } else {
866 std::string s;
867 bool comma_p = false;
868 fprintf(fd, "Filter \"%s\" %sS records if %s %s ", m_name, ACTION_NAME[m_action], m_field->symbol(), OPERATOR_NAME[m_operator]);
CID 1508906 (#1 of 1): AUTO_CAUSES_COPY (AUTO_CAUSES_COPY)
1. auto_causes_copy: Using the auto keyword without an & causes the copy of an object of type IPRangeView.
Use auto & instead of auto.
869 for (auto r : m_addrs) {
870 swoc::bwprint(s, "{}{::c}", swoc::bwf::If(comma_p, ","), r);
871 fprintf(fd, "%s", s.c_str());
872 comma_p = true;
873 }
874 fprintf(fd, "\n");
875 }
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] 1508906 AUTO_CAUSES_COPY [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit closed issue #10419: 1508906 AUTO_CAUSES_COPY
URL: https://github.com/apache/trafficserver/issues/10419
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org