diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-05 09:28:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-05 14:41:59 +0200 |
commit | 8ec183056dd7a954d9af7b26432d7680a31e9896 (patch) | |
tree | 5d6e9a7ee435f3e9fc50b9b34373de1722f0f68b /sal/rtl/ustring.cxx | |
parent | b65d21596b5773d744b242716a78308d2c3714d0 (diff) |
loplugin:reducevarscope in sal
Change-Id: I2ce95de07b8e0952a1e778e65940b30597396aa6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103949
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/rtl/ustring.cxx')
-rw-r--r-- | sal/rtl/ustring.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sal/rtl/ustring.cxx b/sal/rtl/ustring.cxx index cbadddc6a98e..7b6687f74bd5 100644 --- a/sal/rtl/ustring.cxx +++ b/sal/rtl/ustring.cxx @@ -1054,14 +1054,12 @@ void SAL_CALL rtl_uString_internConvert( rtl_uString ** newStr, static void internRelease (rtl_uString *pThis) { - oslMutex pPoolMutex; - rtl_uString *pFree = nullptr; if ( SAL_STRING_REFCOUNT( osl_atomic_decrement( &(pThis->refCount) ) ) == 0) { RTL_LOG_STRING_INTERN_DELETE(pThis); - pPoolMutex = getInternMutex(); + oslMutex pPoolMutex = getInternMutex(); osl_acquireMutex( pPoolMutex ); rtl_str_hash_remove (pThis); |