Adapts NearestParameters to new API

This commit is contained in:
Daniel J. Hofmann 2016-02-16 15:32:36 -08:00 committed by Patrick Niklaus
parent 1902292629
commit a4387f39f1

View File

@ -14,10 +14,10 @@ struct NearestParameters : public BaseParameters
{ {
unsigned number_of_results; 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