summaryrefslogtreecommitdiff
path: root/sal/rtl/hash.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/rtl/hash.cxx')
-rw-r--r--sal/rtl/hash.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sal/rtl/hash.cxx b/sal/rtl/hash.cxx
index e12095f3d9e5..489030f62861 100644
--- a/sal/rtl/hash.cxx
+++ b/sal/rtl/hash.cxx
@@ -40,12 +40,7 @@ static void rtl_str_hash_free(StringHashTable *pHash);
static StringHashTable * getHashTable()
{
- static StringHashTable *pInternPool = nullptr;
- if (!pInternPool)
- {
- static StringHashTable* pHash = rtl_str_hash_new(1024);
- pInternPool = pHash;
- }
+ static StringHashTable* pInternPool = rtl_str_hash_new(1024);
return pInternPool;
}