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);
|
GetLocalesFromEnvironment(LC_ALL, locales);
|
||||||
} else {
|
} else {
|
||||||
for (int lc = 1; lc <= LC_LAST; ++lc) {
|
for (int lc = 1; lc <= LC_LAST; ++lc) {
|
||||||
if (category_mask & (1 << (lc - 1))) {
|
if (category_mask & (1 << (lc - 1)))
|
||||||
GetLocalesFromEnvironment(lc, locales);
|
GetLocalesFromEnvironment(lc, locales);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (category_mask == LC_ALL_MASK) {
|
if (category_mask == LC_ALL_MASK) {
|
||||||
locales[LC_ALL] = locale;
|
locales[LC_ALL] = locale;
|
||||||
}
|
}
|
||||||
for (int lc = 1; lc <= LC_LAST; ++lc) {
|
for (int lc = 1; lc <= LC_LAST; ++lc) {
|
||||||
if (category_mask & (1 << (lc - 1))) {
|
if (category_mask & (1 << (lc - 1)))
|
||||||
locales[lc] = locale;
|
locales[lc] = locale;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (backend == NULL) {
|
if (backend == NULL) {
|
||||||
// for any locale other than POSIX/C, we try to activate the ICU
|
// for any locale other than POSIX/C, we try to activate the ICU
|
||||||
|
|||||||
Reference in New Issue
Block a user