Adapts NearestParameters to new API
This commit is contained in:
parent
487df70eb3
commit
cc65446785
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user