mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53: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:
@@ -61,7 +61,7 @@ UNIT_TEST(GpsTrackStorage_WriteRead)
|
||||
stg.Append(points);
|
||||
|
||||
size_t i = 0;
|
||||
stg.ForEach([&](location::GpsInfo const & point)->bool
|
||||
stg.ForEach([&](location::GpsInfo const & point) -> bool
|
||||
{
|
||||
TEST_EQUAL(point.m_latitude, points[i].m_latitude, ());
|
||||
TEST_EQUAL(point.m_longitude, points[i].m_longitude, ());
|
||||
@@ -78,7 +78,7 @@ UNIT_TEST(GpsTrackStorage_WriteRead)
|
||||
GpsTrackStorage stg(filePath);
|
||||
|
||||
size_t i = 0;
|
||||
stg.ForEach([&](location::GpsInfo const & point)->bool
|
||||
stg.ForEach([&](location::GpsInfo const & point) -> bool
|
||||
{
|
||||
TEST_EQUAL(point.m_latitude, points[i].m_latitude, ());
|
||||
TEST_EQUAL(point.m_longitude, points[i].m_longitude, ());
|
||||
@@ -98,8 +98,12 @@ UNIT_TEST(GpsTrackStorage_WriteRead)
|
||||
GpsTrackStorage stg(filePath);
|
||||
|
||||
size_t i = 0;
|
||||
stg.ForEach([&](location::GpsInfo const & point)->bool{ ++i; return true; });
|
||||
stg.ForEach([&](location::GpsInfo const & point) -> bool
|
||||
{
|
||||
++i;
|
||||
return true;
|
||||
});
|
||||
TEST_EQUAL(i, 0, ());
|
||||
}
|
||||
}
|
||||
} // namespace gps_track_storage_test
|
||||
} // namespace gps_track_storage_test
|
||||
|
||||
Reference in New Issue
Block a user