mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +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:
@@ -11,8 +11,8 @@
|
||||
#include "search/localities_source.hpp"
|
||||
#include "search/mwm_context.hpp"
|
||||
|
||||
#include "coding/files_container.hpp"
|
||||
#include "coding/file_writer.hpp"
|
||||
#include "coding/files_container.hpp"
|
||||
|
||||
#include "base/cancellable.hpp"
|
||||
#include "base/checked_cast.hpp"
|
||||
@@ -44,7 +44,8 @@ void WriteCitiesIdsSectionToFile(std::string const & dataPath,
|
||||
{
|
||||
indexer::FeatureIdToGeoObjectIdBimapMem map;
|
||||
auto const localities = generator::GetLocalities(dataPath);
|
||||
localities.ForEach([&](uint64_t fid64) {
|
||||
localities.ForEach([&](uint64_t fid64)
|
||||
{
|
||||
auto const fid = base::checked_cast<uint32_t>(fid64);
|
||||
auto const it = mapping.find(fid);
|
||||
if (it == mapping.end())
|
||||
@@ -58,10 +59,9 @@ void WriteCitiesIdsSectionToFile(std::string const & dataPath,
|
||||
auto const hasOldOsmId = map.GetValue(fid, oldOsmId);
|
||||
auto const hasOldFid = map.GetKey(osmId, oldFid);
|
||||
|
||||
LOG(LWARNING,
|
||||
("Could not add the pair (", fid, ",", osmId,
|
||||
") to the cities ids section; old fid:", (hasOldFid ? DebugPrint(oldFid) : "none"),
|
||||
"old osmId:", (hasOldOsmId ? DebugPrint(oldOsmId) : "none")));
|
||||
LOG(LWARNING, ("Could not add the pair (", fid, ",", osmId,
|
||||
") to the cities ids section; old fid:", (hasOldFid ? DebugPrint(oldFid) : "none"),
|
||||
"old osmId:", (hasOldOsmId ? DebugPrint(oldOsmId) : "none")));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -73,8 +73,7 @@ void WriteCitiesIdsSectionToFile(std::string const & dataPath,
|
||||
indexer::FeatureIdToGeoObjectIdSerDes::Serialize(*sink, map);
|
||||
auto const pos1 = sink->Pos();
|
||||
|
||||
LOG(LINFO,
|
||||
("Serialized cities ids. Number of entries:", map.Size(), "Size in bytes:", pos1 - pos0));
|
||||
LOG(LINFO, ("Serialized cities ids. Number of entries:", map.Size(), "Size in bytes:", pos1 - pos0));
|
||||
}
|
||||
} // namespace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user