Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -33,12 +33,11 @@ Maxspeed Maxspeeds::GetMaxspeed(uint32_t fid) const
}
// Bidirectional maxspeeds.
auto const range = std::equal_range(
m_bidirectionalMaxspeeds.cbegin(), m_bidirectionalMaxspeeds.cend(),
fid, FeatureMaxspeed::Less());
auto const range = std::equal_range(m_bidirectionalMaxspeeds.cbegin(), m_bidirectionalMaxspeeds.cend(), fid,
FeatureMaxspeed::Less());
if (range.second == range.first)
return Maxspeed(); // No maxspeed for |fid| is set. Returns an invalid Maxspeed instance.
return Maxspeed(); // No maxspeed for |fid| is set. Returns an invalid Maxspeed instance.
CHECK_EQUAL(range.second - range.first, 1, ());
return range.first->GetMaxspeed();
@@ -76,8 +75,7 @@ std::unique_ptr<Maxspeeds> LoadMaxspeeds(MwmSet::MwmHandle const & handle)
}
catch (Reader::Exception const & e)
{
LOG(LERROR, ("File", value->GetCountryFileName(), "Error while reading", MAXSPEEDS_FILE_TAG,
"section.", e.Msg()));
LOG(LERROR, ("File", value->GetCountryFileName(), "Error while reading", MAXSPEEDS_FILE_TAG, "section.", e.Msg()));
return std::make_unique<Maxspeeds>();
}
}