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:
@@ -37,11 +37,9 @@ public:
|
||||
string GetName() const override { return "Dummy"; }
|
||||
void SetGuides(GuidesTracks && /* guides */) override {}
|
||||
RouterResultCode CalculateRoute(Checkpoints const & checkpoints, m2::PointD const & startDirection,
|
||||
bool adjustToPrevRoute, RouterDelegate const & delegate,
|
||||
Route & route) override
|
||||
bool adjustToPrevRoute, RouterDelegate const & delegate, Route & route) override
|
||||
{
|
||||
route = Route("dummy", checkpoints.GetPoints().cbegin(), checkpoints.GetPoints().cend(),
|
||||
0 /* route id */);
|
||||
route = Route("dummy", checkpoints.GetPoints().cbegin(), checkpoints.GetPoints().cend(), 0 /* route id */);
|
||||
|
||||
for (auto const & absent : m_absent)
|
||||
route.AddAbsentCountry(absent);
|
||||
@@ -49,8 +47,8 @@ public:
|
||||
return m_result;
|
||||
}
|
||||
|
||||
bool FindClosestProjectionToRoad(m2::PointD const & point, m2::PointD const & direction,
|
||||
double radius, EdgeProj & proj) override
|
||||
bool FindClosestProjectionToRoad(m2::PointD const & point, m2::PointD const & direction, double radius,
|
||||
EdgeProj & proj) override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -95,8 +93,7 @@ struct DummyRoutingCallbacks
|
||||
{
|
||||
lock_guard<mutex> calledLock(m_lock);
|
||||
++m_called;
|
||||
TEST_LESS_OR_EQUAL(m_called, m_expected,
|
||||
("The result callback called more times than expected."));
|
||||
TEST_LESS_OR_EQUAL(m_called, m_expected, ("The result callback called more times than expected."));
|
||||
}
|
||||
m_cv.notify_all();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user