libroot/locale: Fix indentation of locale_t.cpp.
Also adjust some braces. No functional change intended.
This commit is contained in:
@@ -137,21 +137,19 @@ newlocale(int category_mask, const char* locale, locale_t base)
|
||||
GetLocalesFromEnvironment(LC_ALL, locales);
|
||||
} else {
|
||||
for (int lc = 1; lc <= LC_LAST; ++lc) {
|
||||
if (category_mask & (1 << (lc - 1))) {
|
||||
if (category_mask & (1 << (lc - 1)))
|
||||
GetLocalesFromEnvironment(lc, locales);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (category_mask == LC_ALL_MASK) {
|
||||
locales[LC_ALL] = locale;
|
||||
}
|
||||
for (int lc = 1; lc <= LC_LAST; ++lc) {
|
||||
if (category_mask & (1 << (lc - 1))) {
|
||||
if (category_mask & (1 << (lc - 1)))
|
||||
locales[lc] = locale;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (backend == NULL) {
|
||||
// for any locale other than POSIX/C, we try to activate the ICU
|
||||
|
||||
Reference in New Issue
Block a user