diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-07-23 03:16:04 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-07-23 03:16:04 +1000 |
commit | f250b04a5ee7795f0104e6a1f6d47ded41df4044 (patch) | |
tree | e881a04ab5a74d364ad1399bd79aad5d630a6e80 | |
parent | bdb6208ffd50e5e47c5c57082385ec63be012d3c (diff) |
rtl: cleanup equality conditions in locale.cxx
Change-Id: I25833b65f89cc24ec2b62d4836f6c7c230c418aa
-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; |