mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-04 11:53:47 +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:
@@ -45,7 +45,8 @@ void BrandsHolder::ForEachNameByKeyAndLang(std::string const & key, std::string
|
||||
std::function<void(std::string const &)> const & toDo) const
|
||||
{
|
||||
int8_t const locale = StringUtf8Multilang::GetLangIndex(lang);
|
||||
ForEachNameByKey(key, [&](Brand::Name const & name) {
|
||||
ForEachNameByKey(key, [&](Brand::Name const & name)
|
||||
{
|
||||
if (name.m_locale == locale)
|
||||
toDo(name.m_name);
|
||||
});
|
||||
@@ -126,8 +127,7 @@ void BrandsHolder::AddBrand(Brand & brand, std::string const & key)
|
||||
std::string DebugPrint(BrandsHolder::Brand::Name const & name)
|
||||
{
|
||||
std::ostringstream out;
|
||||
out << "BrandName[" << StringUtf8Multilang::GetLangByCode(name.m_locale) << ", " << name.m_name
|
||||
<< "]";
|
||||
out << "BrandName[" << StringUtf8Multilang::GetLangByCode(name.m_locale) << ", " << name.m_name << "]";
|
||||
return out.str();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user