mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -9,19 +9,21 @@ namespace
|
||||
{
|
||||
// List of country names where mwm should be generated without speed cameras.
|
||||
std::vector<std::string> kSpeedCamerasProhibitedCountries = {
|
||||
"Macedonia", "Switzerland", "Turkey",
|
||||
"Macedonia",
|
||||
"Switzerland",
|
||||
"Turkey",
|
||||
};
|
||||
|
||||
// List of country names where an end user should be warned about speed cameras.
|
||||
std::vector<std::string> kSpeedCamerasPartlyProhibitedCountries = {
|
||||
"France", "Germany",
|
||||
"France",
|
||||
"Germany",
|
||||
};
|
||||
|
||||
bool IsMwmContained(platform::CountryFile const & mwm, std::vector<std::string> const & countryList)
|
||||
{
|
||||
return std::any_of(countryList.cbegin(), countryList.cend(), [&mwm](auto const & country) {
|
||||
return mwm.GetName().starts_with(country);
|
||||
});
|
||||
return std::any_of(countryList.cbegin(), countryList.cend(),
|
||||
[&mwm](auto const & country) { return mwm.GetName().starts_with(country); });
|
||||
}
|
||||
} // namespace
|
||||
|
||||
@@ -36,4 +38,4 @@ bool AreSpeedCamerasPartlyProhibited(platform::CountryFile const & mwm)
|
||||
{
|
||||
return IsMwmContained(mwm, kSpeedCamerasPartlyProhibitedCountries);
|
||||
}
|
||||
} // namespace routing
|
||||
} // namespace routing
|
||||
|
||||
Reference in New Issue
Block a user