Skip to content

Commit

Permalink
Revert "Use reference in range-for with non trivial type (#294)" (#295)
Browse files Browse the repository at this point in the history
This reverts commit 151b37b.
  • Loading branch information
derekmauro authored Jul 8, 2024
1 parent 151b37b commit 88b3097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/time_zone_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ std::unique_ptr<ZoneInfoSource> FuchsiaZoneInfoSource::Open(
const auto prefixes = name_absolute ? kEmptyPrefix : kTzdataPrefixes;

// Fuchsia builds place zoneinfo files at "<prefix><format><name>".
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);
Expand Down

0 comments on commit 88b3097

Please sign in to comment.