clang-format

Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
map-per
2025-11-13 17:46:05 +01:00
parent 237894cd45
commit 005f731faa
7 changed files with 23 additions and 16 deletions

View File

@@ -43,9 +43,10 @@ void EditJournal::MarkAsCreated(uint32_t type, feature::GeomType geomType, m2::P
void EditJournal::AddBusinessReplacement(uint32_t old_type, uint32_t new_type)
{
LOG(LDEBUG, ("Business of type ", classif().GetReadableObjectName(old_type),
" was replaced by a ", classif().GetReadableObjectName(new_type)));
AddJournalEntry({JournalEntryType::BusinessReplacement, time(nullptr), osm::BusinessReplacementData{old_type, new_type}});
LOG(LDEBUG, ("Business of type ", classif().GetReadableObjectName(old_type), " was replaced by a ",
classif().GetReadableObjectName(new_type)));
AddJournalEntry(
{JournalEntryType::BusinessReplacement, time(nullptr), osm::BusinessReplacementData{old_type, new_type}});
}
void EditJournal::AddJournalEntry(JournalEntry entry)
@@ -114,10 +115,10 @@ std::string EditJournal::ToString(osm::JournalEntry const & journalEntry)
{
BusinessReplacementData const & businessReplacementData = std::get<BusinessReplacementData>(journalEntry.data);
return ToString(journalEntry.journalEntryType)
.append(": Category changed from ")
.append(classif().GetReadableObjectName(businessReplacementData.old_type))
.append(" to ")
.append(classif().GetReadableObjectName(businessReplacementData.new_type));
.append(": Category changed from ")
.append(classif().GetReadableObjectName(businessReplacementData.old_type))
.append(" to ")
.append(classif().GetReadableObjectName(businessReplacementData.new_type));
}
default: UNREACHABLE();
}