From a4387f39f15548fe29211078b857facd057d2522 Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Tue, 16 Feb 2016 15:32:36 -0800 Subject: [PATCH] Adapts NearestParameters to new API --- include/engine/api/nearest_parameters.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/engine/api/nearest_parameters.hpp b/include/engine/api/nearest_parameters.hpp index dd255d02b..1f35f30ac 100644 --- a/include/engine/api/nearest_parameters.hpp +++ b/include/engine/api/nearest_parameters.hpp @@ -14,10 +14,10 @@ struct NearestParameters : public BaseParameters { unsigned number_of_results; - bool IsValid() const; + bool IsValid() const { return BaseParameters::IsValid() && number_of_results >= 1; } }; } } } -#endif // ROUTE_PARAMETERS_HPP +#endif // ENGINE_API_NEAREST_PARAMETERS_HPP