diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-07 10:14:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-07 13:11:35 +0200 |
commit | e41106332982faef3c8b343b96904eeaa9ff6f60 (patch) | |
tree | 4c468229353f295eaeca6e1970e414159da9d608 /linguistic/source/iprcache.cxx | |
parent | 6a2d03e7c796ad90c4d9d134ad1a91d527953c66 (diff) |
loplugin:flatten in linguistic
Change-Id: I5dc83e3f3697ccd6a482c799af267587a77563c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91799
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic/source/iprcache.cxx')
-rw-r--r-- | linguistic/source/iprcache.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/linguistic/source/iprcache.cxx b/linguistic/source/iprcache.cxx index 8f81551eebeb..eb49db33892f 100644 --- a/linguistic/source/iprcache.cxx +++ b/linguistic/source/iprcache.cxx @@ -149,19 +149,19 @@ void SAL_CALL FlushListener::processDictionaryListEvent( { MutexGuard aGuard( GetLinguMutex() ); - if (rDicListEvent.Source == xDicList) - { - sal_Int16 nEvt = rDicListEvent.nCondensedEvent; - sal_Int16 const nFlushFlags = - DictionaryListEventFlags::ADD_NEG_ENTRY | - DictionaryListEventFlags::DEL_POS_ENTRY | - DictionaryListEventFlags::ACTIVATE_NEG_DIC | - DictionaryListEventFlags::DEACTIVATE_POS_DIC; - bool bFlush = 0 != (nEvt & nFlushFlags); - - if (bFlush) - mrSpellCache.Flush(); - } + if (rDicListEvent.Source != xDicList) + return; + + sal_Int16 nEvt = rDicListEvent.nCondensedEvent; + sal_Int16 const nFlushFlags = + DictionaryListEventFlags::ADD_NEG_ENTRY | + DictionaryListEventFlags::DEL_POS_ENTRY | + DictionaryListEventFlags::ACTIVATE_NEG_DIC | + DictionaryListEventFlags::DEACTIVATE_POS_DIC; + bool bFlush = 0 != (nEvt & nFlushFlags); + + if (bFlush) + mrSpellCache.Flush(); } |