diff --git a/src/query/parameters.hpp b/src/query/parameters.hpp index 37a853d38..f21e26b93 100644 --- a/src/query/parameters.hpp +++ b/src/query/parameters.hpp @@ -33,10 +33,9 @@ struct Parameters { * @return Value for the given token position. */ const PropertyValue &AtTokenPosition(int position) const { - auto found = std::find_if(storage_.begin(), storage_.end(), - [&](const std::pair a) { - return a.first == position; - }); + auto found = + std::find_if(storage_.begin(), storage_.end(), + [&](const auto &a) { return a.first == position; }); CHECK(found != storage_.end()) << "Token position must be present in container"; return found->second;