From 4ac2f1799f1d6d428c06e5699c246184dd8590ad Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 25 Nov 2018 19:52:09 +0300 Subject: 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 --- linguistic/source/lngsvcmgr.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linguistic/source') 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 ); } -- cgit