mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +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:
@@ -22,10 +22,7 @@ struct WayElement
|
||||
std::vector<uint64_t> m_nodes;
|
||||
|
||||
explicit WayElement(uint64_t osmId) : m_wayOsmId(osmId) {}
|
||||
WayElement(uint64_t osmId, std::vector<uint64_t> const & nodes)
|
||||
: m_wayOsmId(osmId), m_nodes(nodes)
|
||||
{
|
||||
}
|
||||
WayElement(uint64_t osmId, std::vector<uint64_t> const & nodes) : m_wayOsmId(osmId), m_nodes(nodes) {}
|
||||
|
||||
bool IsValid() const { return !m_nodes.empty(); }
|
||||
|
||||
@@ -219,10 +216,8 @@ protected:
|
||||
static std::string_view FindRoleImpl(std::vector<Member> const & container, uint64_t id)
|
||||
{
|
||||
for (auto const & e : container)
|
||||
{
|
||||
if (e.first == id)
|
||||
return e.second;
|
||||
}
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user