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

@@ -599,7 +599,8 @@ void XMLFeature::SetEditJournal(osm::EditJournal const & journal)
}
case osm::JournalEntryType::BusinessReplacement:
{
osm::BusinessReplacementData const & businessReplacementData = std::get<osm::BusinessReplacementData>(entry.data);
osm::BusinessReplacementData const & businessReplacementData =
std::get<osm::BusinessReplacementData>(entry.data);
xmlData.append_attribute("old_type") = classif().GetReadableObjectName(businessReplacementData.old_type).data();
xmlData.append_attribute("new_type") = classif().GetReadableObjectName(businessReplacementData.new_type).data();
break;
@@ -712,7 +713,8 @@ void XMLFeature::OSMBusinessReplacement(uint32_t old_type, uint32_t new_type)
std::string name = GetTagValue("name");
// Remove OSM tags using the list from keys_to_remove.hpp
static const boost::regex regex([] {
static boost::regex const regex([]
{
std::string regexPattern;
for (auto const & key : kKeysToRemove)
@@ -747,8 +749,8 @@ void XMLFeature::OSMBusinessReplacement(uint32_t old_type, uint32_t new_type)
else
{
// Add new category tag
ASSERT_FAIL("Only marking places as 'disused' is implemented yet. "
"Wrong new_type: " + classif().GetReadableObjectName(new_type));
ASSERT_FAIL("Only marking places as 'disused' is implemented yet. Wrong new_type: " +
classif().GetReadableObjectName(new_type));
}
}