mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 14:43:43 +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,7 +22,10 @@ namespace coasts_test
|
||||
{
|
||||
using feature::FeatureBuilder;
|
||||
|
||||
static m2::PointU D2I(double x, double y) { return PointDToPointU(m2::PointD(x, y), kPointCoordBits); }
|
||||
static m2::PointU D2I(double x, double y)
|
||||
{
|
||||
return PointDToPointU(m2::PointD(x, y), kPointCoordBits);
|
||||
}
|
||||
|
||||
class ProcessCoastsBase
|
||||
{
|
||||
@@ -90,9 +93,9 @@ class DoCopyCoasts : public ProcessCoastsBase
|
||||
{
|
||||
public:
|
||||
DoCopyCoasts(std::string const & fName, std::vector<std::string> const & vID)
|
||||
: ProcessCoastsBase(vID), m_collector(fName)
|
||||
{
|
||||
}
|
||||
: ProcessCoastsBase(vID)
|
||||
, m_collector(fName)
|
||||
{}
|
||||
|
||||
void operator()(FeatureBuilder const & fb1, uint64_t)
|
||||
{
|
||||
@@ -116,7 +119,7 @@ UNIT_TEST(CellID_CheckRectPoints)
|
||||
{
|
||||
Id const cell = Id::FromBitsAndLevel(i, level);
|
||||
std::pair<uint32_t, uint32_t> const xy = cell.XY();
|
||||
uint32_t const r = 2*cell.Radius();
|
||||
uint32_t const r = 2 * cell.Radius();
|
||||
uint32_t const bound = (1 << level) * r;
|
||||
|
||||
double minX, minY, maxX, maxY;
|
||||
|
||||
Reference in New Issue
Block a user