diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-11-25 19:52:09 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-11-25 20:35:57 +0100 |
commit | 4ac2f1799f1d6d428c06e5699c246184dd8590ad (patch) | |
tree | b96b61a7a037074d3155b63f30c01fbf276c491f /linguistic | |
parent | 1bc269504bc16b188f77204f53f1c34541750da9 (diff) |
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: I2ae298f49ceba8059cd7236431db9a4d9a46b125
Reviewed-on: https://gerrit.libreoffice.org/63992
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/lngsvcmgr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 9d57c1432b29..a95f5bfd4fbd 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -1585,7 +1585,7 @@ void SAL_CALL mxSpellDsp->SetServiceList( rLocale, rServiceImplNames ); SaveCfgSvcs( SN_SPELLCHECKER ); - if (mxListenerHelper.is() && bChanged) + if (mxListenerHelper) mxListenerHelper->AddLngSvcEvt( linguistic2::LinguServiceEventFlags::SPELL_CORRECT_WORDS_AGAIN | linguistic2::LinguServiceEventFlags::SPELL_WRONG_WORDS_AGAIN ); @@ -1602,7 +1602,7 @@ void SAL_CALL mxGrammarDsp->SetServiceList( rLocale, rServiceImplNames ); SaveCfgSvcs( SN_GRAMMARCHECKER ); - if (mxListenerHelper.is() && bChanged) + if (mxListenerHelper) mxListenerHelper->AddLngSvcEvt( linguistic2::LinguServiceEventFlags::PROOFREAD_AGAIN ); } @@ -1618,7 +1618,7 @@ void SAL_CALL mxHyphDsp->SetServiceList( rLocale, rServiceImplNames ); SaveCfgSvcs( SN_HYPHENATOR ); - if (mxListenerHelper.is() && bChanged) + if (mxListenerHelper) mxListenerHelper->AddLngSvcEvt( linguistic2::LinguServiceEventFlags::HYPHENATE_AGAIN ); } |