diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:19:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:31 +0100 |
commit | 53a2e93fc5a4872b36fb8e76ddd4b722a18cb49b (patch) | |
tree | 8c3a8c2f03da9a664a3e5f7b38fa5e76f3b53b76 /linguistic/source/spelldsp.cxx | |
parent | 64d1b574ad79ef3bbbab6dade75dbdafecb6bb6b (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I5d642a463f4dca8665745c19918699e7bfe7db99
Diffstat (limited to 'linguistic/source/spelldsp.cxx')
-rw-r--r-- | linguistic/source/spelldsp.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx index 745e0a900404..2757d47b7030 100644 --- a/linguistic/source/spelldsp.cxx +++ b/linguistic/source/spelldsp.cxx @@ -176,8 +176,8 @@ bool SvcListHasLanguage( SpellCheckerDispatcher::SpellCheckerDispatcher( LngSvcMgr &rLngSvcMgr ) : rMgr (rLngSvcMgr) { - pCache = NULL; - pCharClass = NULL; + pCache = nullptr; + pCharClass = nullptr; } @@ -292,7 +292,7 @@ bool SpellCheckerDispatcher::isValid_Impl( // search for entry with that language SpellSvcByLangMap_t::iterator aIt( aSvcMap.find( nLanguage ) ); - LangSvcEntries_Spell *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : NULL; + LangSvcEntries_Spell *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : nullptr; if (pEntry) { @@ -458,7 +458,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl( // search for entry with that language SpellSvcByLangMap_t::iterator aIt( aSvcMap.find( nLanguage ) ); - LangSvcEntries_Spell *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : NULL; + LangSvcEntries_Spell *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : nullptr; if (pEntry) { @@ -497,7 +497,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl( { bool bOK = GetCache().CheckWord( aChkWord, nLanguage ); if (bOK) - xTmpRes = NULL; + xTmpRes = nullptr; else { xTmpRes = pRef[i]->spell( aChkWord, aLocale, rProperties ); @@ -576,7 +576,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl( { bool bOK = GetCache().CheckWord( aChkWord, nLanguage ); if (bOK) - xTmpRes = NULL; + xTmpRes = nullptr; else { xTmpRes = xSpell->spell( aChkWord, aLocale, rProperties ); @@ -626,7 +626,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl( // if word is finally found to be correct // clear previously remembered alternatives if (bTmpResValid && !xTmpRes.is()) - xRes = NULL; + xRes = nullptr; // list of proposals found (to be checked against entries of // negative dictionaries) @@ -663,7 +663,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl( } else // positive entry found { - xRes = NULL; + xRes = nullptr; eFailureType = -1; // no failure } } @@ -703,7 +703,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl( } else // positive entry found { - xRes = NULL; + xRes = nullptr; eFailureType = -1; // no failure } } @@ -836,7 +836,7 @@ Sequence< OUString > // search for entry with that language and use data from that sal_Int16 nLanguage = LinguLocaleToLanguage( rLocale ); const SpellSvcByLangMap_t::const_iterator aIt( aSvcMap.find( nLanguage ) ); - const LangSvcEntries_Spell *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : NULL; + const LangSvcEntries_Spell *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : nullptr; if (pEntry) aRes = pEntry->aSvcImplNames; |