From 9bbbebf31dcc31e74a1857d97f2afbfc986c9026 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 30 Mar 2015 13:13:13 +0200 Subject: [PATCH] use empty() instead of 1>size() to make intent more clear --- plugins/match.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/match.hpp b/plugins/match.hpp index 1e3f18d9b..529b7ed85 100644 --- a/plugins/match.hpp +++ b/plugins/match.hpp @@ -257,7 +257,7 @@ template class MapMatchingPlugin : public BasePlugin route_parameters.matching_beta, route_parameters.gps_precision, sub_matchings); - if (1 > sub_matchings.size()) + if (sub_matchings.empty()) { return 400; }