mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +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:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user