diff --git a/generator/restriction_writer.cpp b/generator/restriction_writer.cpp index e4278a2c66..5f31c6be29 100644 --- a/generator/restriction_writer.cpp +++ b/generator/restriction_writer.cpp @@ -67,10 +67,11 @@ void RestrictionWriter::Write(RelationElement const & relationElement) return; // Unsupported restriction. For example line-line-line. // Extracting osm ids of lines and points of the restriction. - auto const findTag = [&relationElement](std::vector> const & members, - std::string const & tag) { - auto const it = std::find_if(members.cbegin(), members.cend(), - [&tag](std::pair const & p) { return p.second == tag; }); + auto const findTag = [](std::vector> const & members, + std::string const & tag) { + auto const it = std::find_if( + members.cbegin(), members.cend(), + [&tag](std::pair const & p) { return p.second == tag; }); return it; };