mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +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:
@@ -6,9 +6,7 @@ namespace platform
|
||||
{
|
||||
Locale StdLocale2Locale(std::locale loc)
|
||||
{
|
||||
return {"",
|
||||
"",
|
||||
std::use_facet<std::moneypunct<char, true>>(loc).curr_symbol(),
|
||||
return {"", "", std::use_facet<std::moneypunct<char, true>>(loc).curr_symbol(),
|
||||
std::string(1, std::use_facet<std::numpunct<char>>(loc).decimal_point()),
|
||||
std::string(1, std::use_facet<std::numpunct<char>>(loc).thousands_sep())};
|
||||
}
|
||||
@@ -21,7 +19,7 @@ Locale GetCurrentLocale()
|
||||
return StdLocale2Locale(loc);
|
||||
}
|
||||
|
||||
bool GetLocale(std::string const localeName, Locale& result)
|
||||
bool GetLocale(std::string const localeName, Locale & result)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -31,11 +29,10 @@ bool GetLocale(std::string const localeName, Locale& result)
|
||||
|
||||
return true;
|
||||
}
|
||||
catch(...)
|
||||
catch (...)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace platform
|
||||
|
||||
|
||||
Reference in New Issue
Block a user