summaryrefslogtreecommitdiff
path: root/thirdparty/icu4c/common/locavailable.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-10-28 09:11:55 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-10-28 09:11:55 +0300
commit4e44a271f0cfd00f5d278fd3001f1750cf934e42 (patch)
tree4dda3aa82f579c74cf6db1116b50cf8c18a75304 /thirdparty/icu4c/common/locavailable.cpp
parent9ff3a43a329182ba2fad34263297052c70a4524e (diff)
ICU: Update to version 72.1
Diffstat (limited to 'thirdparty/icu4c/common/locavailable.cpp')
-rw-r--r--thirdparty/icu4c/common/locavailable.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/thirdparty/icu4c/common/locavailable.cpp b/thirdparty/icu4c/common/locavailable.cpp
index e8ec512e37..cf341e1f74 100644
--- a/thirdparty/icu4c/common/locavailable.cpp
+++ b/thirdparty/icu4c/common/locavailable.cpp
@@ -37,7 +37,7 @@ U_NAMESPACE_BEGIN
static icu::Locale* availableLocaleList = NULL;
static int32_t availableLocaleListCount;
-static icu::UInitOnce gInitOnceLocale = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gInitOnceLocale {};
U_NAMESPACE_END
@@ -54,7 +54,7 @@ static UBool U_CALLCONV locale_available_cleanup(void)
availableLocaleListCount = 0;
gInitOnceLocale.reset();
- return TRUE;
+ return true;
}
U_CDECL_END
@@ -102,7 +102,7 @@ namespace {
// Enough capacity for the two lists in the res_index.res file
const char** gAvailableLocaleNames[2] = {};
int32_t gAvailableLocaleCounts[2] = {};
-icu::UInitOnce ginstalledLocalesInitOnce = U_INITONCE_INITIALIZER;
+icu::UInitOnce ginstalledLocalesInitOnce {};
class AvailableLocalesSink : public ResourceSink {
public:
@@ -203,7 +203,7 @@ static UBool U_CALLCONV uloc_cleanup(void) {
gAvailableLocaleCounts[i] = 0;
}
ginstalledLocalesInitOnce.reset();
- return TRUE;
+ return true;
}
// Load Installed Locales. This function will be called exactly once