libroot/locale: Fix indentation of locale_t.cpp.

Also adjust some braces. No functional change intended.
This commit is contained in:
Augustin Cavalier
2023-08-30 17:55:04 -04:00
parent efdfb84038
commit 2705bc6bdf
+2 -4
View File
@@ -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