From 77dbebf49a13e7c17b27e0e6b9b13230d9cd4eeb Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Mon, 21 May 2018 16:20:13 +0300 Subject: [PATCH] Warning fix. --- generator/restriction_writer.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; };