Resolves technical debt issues:
* loop variable is copied but only used as const reference; consider making it a const reference (performance-for-range-copy)
CL generated by 'ykats' via Upkeep (go/upkeep).
Code cleanup
#upkeep #autofix #codehealth
PiperOrigin-RevId: 327512768
Change-Id: I8b187f690d4dd7354076d3cc855f591157098c29
diff --git a/quic/core/quic_framer.cc b/quic/core/quic_framer.cc
index be155a9..c9eabcb 100644
--- a/quic/core/quic_framer.cc
+++ b/quic/core/quic_framer.cc
@@ -766,7 +766,7 @@
// TODO(nharper): Change this method to take a ParsedQuicVersion.
bool QuicFramer::IsSupportedTransportVersion(
const QuicTransportVersion version) const {
- for (ParsedQuicVersion supported_version : supported_versions_) {
+ for (const ParsedQuicVersion& supported_version : supported_versions_) {
if (version == supported_version.transport_version) {
return true;
}