diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-23 09:42:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-23 10:19:43 +0200 |
commit | 1e509513d95e810d44246e65fe3d1547772bc06b (patch) | |
tree | e709ebec9ed5cd50904e086d3f9bb448dce3485f /linguistic | |
parent | b6fc1f033f3c23cac389ddaec32af04dc80cc1a2 (diff) |
loplugin:constantparam in linguistic
Change-Id: Iffdcaae0b7cd99a481068c0c97ee25f5b40ee6ec
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/spelldsp.cxx | 17 | ||||
-rw-r--r-- | linguistic/source/spelldsp.hxx | 6 |
2 files changed, 9 insertions, 14 deletions
diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx index 5c09ae84a3a6..26010a1e8406 100644 --- a/linguistic/source/spelldsp.cxx +++ b/linguistic/source/spelldsp.cxx @@ -228,7 +228,7 @@ sal_Bool SAL_CALL throw(IllegalArgumentException, RuntimeException, std::exception) { MutexGuard aGuard( GetLinguMutex() ); - return isValid_Impl( rWord, LinguLocaleToLanguage( rLocale ), rProperties, true ); + return isValid_Impl( rWord, LinguLocaleToLanguage( rLocale ), rProperties ); } @@ -238,7 +238,7 @@ Reference< XSpellAlternatives > SAL_CALL throw(IllegalArgumentException, RuntimeException, std::exception) { MutexGuard aGuard( GetLinguMutex() ); - return spell_Impl( rWord, LinguLocaleToLanguage( rLocale ), rProperties, true ); + return spell_Impl( rWord, LinguLocaleToLanguage( rLocale ), rProperties ); } @@ -279,8 +279,7 @@ static Reference< XDictionaryEntry > lcl_GetRulingDictionaryEntry( bool SpellCheckerDispatcher::isValid_Impl( const OUString& rWord, LanguageType nLanguage, - const PropertyValues& rProperties, - bool bCheckDics) + const PropertyValues& rProperties) throw( RuntimeException, IllegalArgumentException, std::exception ) { MutexGuard aGuard( GetLinguMutex() ); @@ -419,8 +418,7 @@ bool SpellCheckerDispatcher::isValid_Impl( } // cross-check against results from dictionaries which have precedence! - if (bCheckDics && - GetDicList().is() && IsUseDicList( rProperties, GetPropSet() )) + if (GetDicList().is() && IsUseDicList( rProperties, GetPropSet() )) { Reference< XDictionaryEntry > xTmp( lcl_GetRulingDictionaryEntry( aChkWord, nLanguage ) ); if (xTmp.is()) { @@ -445,8 +443,7 @@ bool SpellCheckerDispatcher::isValid_Impl( Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl( const OUString& rWord, LanguageType nLanguage, - const PropertyValues& rProperties, - bool bCheckDics ) + const PropertyValues& rProperties ) throw(IllegalArgumentException, RuntimeException, std::exception) { MutexGuard aGuard( GetLinguMutex() ); @@ -642,7 +639,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl( xDList = GetDicList(); // cross-check against results from user-dictionaries which have precedence! - if (bCheckDics && xDList.is()) + if (xDList.is()) { Reference< XDictionaryEntry > xTmp( lcl_GetRulingDictionaryEntry( aChkWord, nLanguage ) ); if (xTmp.is()) @@ -722,7 +719,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl( // remove entries listed in negative dictionaries // (we don't want to display suggestions that will be regarded as misspelled later on) - if (bCheckDics && xDList.is()) + if (xDList.is()) SeqRemoveNegEntries( aProposals, xDList, nLanguage ); uno::Reference< linguistic2::XSetSpellAlternatives > xSetAlt( xRes, uno::UNO_QUERY ); diff --git a/linguistic/source/spelldsp.hxx b/linguistic/source/spelldsp.hxx index d6d786347478..9dba17c2bf8f 100644 --- a/linguistic/source/spelldsp.hxx +++ b/linguistic/source/spelldsp.hxx @@ -75,15 +75,13 @@ class SpellCheckerDispatcher : void ClearSvcList(); bool isValid_Impl(const OUString& aWord, LanguageType nLanguage, - const css::beans::PropertyValues& aProperties, - bool bCheckDics) + const css::beans::PropertyValues& aProperties) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception ); css::uno::Reference< css::linguistic2::XSpellAlternatives > spell_Impl(const OUString& aWord, LanguageType nLanguage, - const css::beans::PropertyValues& aProperties, - bool bCheckDics) + const css::beans::PropertyValues& aProperties) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception ); public: |