From 88b30979865d641a24e9cc255559e517a1335db0 Mon Sep 17 00:00:00 2001 From: Derek Mauro <761129+derekmauro@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:17:29 -0400 Subject: [PATCH] Revert "Use reference in range-for with non trivial type (#294)" (#295) This reverts commit 151b37b43db0a9bb4977514fc3ee145c2fb5d7b4. --- src/time_zone_info.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time_zone_info.cc b/src/time_zone_info.cc index 4053204..cc4b001 100644 --- a/src/time_zone_info.cc +++ b/src/time_zone_info.cc @@ -551,7 +551,7 @@ std::unique_ptr FuchsiaZoneInfoSource::Open( const auto prefixes = name_absolute ? kEmptyPrefix : kTzdataPrefixes; // Fuchsia builds place zoneinfo files at "". - for (const std::string& prefix : prefixes) { + for (const std::string prefix : prefixes) { std::string path = prefix; if (!prefix.empty()) path += "zoneinfo/tzif2/"; // format path.append(name, pos, std::string::npos);