From f250b04a5ee7795f0104e6a1f6d47ded41df4044 Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Sun, 23 Jul 2017 03:16:04 +1000 Subject: rtl: cleanup equality conditions in locale.cxx Change-Id: I25833b65f89cc24ec2b62d4836f6c7c230c418aa --- sal/rtl/locale.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sal/rtl') 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; -- cgit