mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 06:33:42 +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:
@@ -18,10 +18,9 @@ namespace
|
||||
{
|
||||
platform::LocalCountryFile MakeFile(std::string name, int64_t version)
|
||||
{
|
||||
return { GetPlatform().WritableDir() + std::to_string(version),
|
||||
platform::CountryFile(std::move(name)), version };
|
||||
return {GetPlatform().WritableDir() + std::to_string(version), platform::CountryFile(std::move(name)), version};
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
UNIT_TEST(CrossMwmWeights)
|
||||
{
|
||||
@@ -43,7 +42,7 @@ UNIT_TEST(CrossMwmWeights)
|
||||
builder.DeserializeTransitions(VehicleType::Car, reader);
|
||||
builder.DeserializeWeights(reader);
|
||||
|
||||
//std::vector<connector::Weight> weights(connector.GetNumEnters() * connector.GetNumExits());
|
||||
// std::vector<connector::Weight> weights(connector.GetNumEnters() * connector.GetNumExits());
|
||||
|
||||
using IdxWeightT = std::pair<uint32_t, uint32_t>;
|
||||
std::vector<IdxWeightT> idx2weight;
|
||||
@@ -54,7 +53,7 @@ UNIT_TEST(CrossMwmWeights)
|
||||
{
|
||||
uint32_t const idx = connector.GetWeightIndex(enterIdx, exitIdx);
|
||||
uint32_t const weight = connector.GetWeight(enterIdx, exitIdx);
|
||||
//weights[idx] = weight;
|
||||
// weights[idx] = weight;
|
||||
|
||||
if (weight > 0)
|
||||
idx2weight.emplace_back(idx, weight);
|
||||
|
||||
Reference in New Issue
Block a user