diff options
-rw-r--r-- | sal/rtl/locale.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/rtl/locale.cxx b/sal/rtl/locale.cxx index b6eae3978a7e..f610584b1b78 100644 --- a/sal/rtl/locale.cxx +++ b/sal/rtl/locale.cxx @@ -204,13 +204,13 @@ extern "C" sal_Bool rtl_hashtable_find(RTL_HASHTABLE * table, sal_Int32 key, sal void rtl_locale_init() { - OSL_ASSERT(g_pLocaleTable == nullptr); + OSL_ASSERT(!g_pLocaleTable); rtl_hashtable_init(&g_pLocaleTable, 1); } void rtl_locale_fini() { - if (g_pLocaleTable != nullptr) + if (g_pLocaleTable) { rtl_hashtable_destroy (g_pLocaleTable); g_pLocaleTable = nullptr; |