Kaydet (Commit) 8130e18b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705124 Invalid iterator comparison

Change-Id: I3066e838c13cd6a937c7dd37da23310ddfb014c4
üst 9e422a0d
...@@ -797,8 +797,7 @@ Sequence< OUString > ...@@ -797,8 +797,7 @@ Sequence< OUString >
// search for entry with that language and use data from that // search for entry with that language and use data from that
sal_Int16 nLanguage = LinguLocaleToLanguage( rLocale ); sal_Int16 nLanguage = LinguLocaleToLanguage( rLocale );
SpellCheckerDispatcher *pThis = (SpellCheckerDispatcher *) this; const SpellSvcByLangMap_t::const_iterator aIt( aSvcMap.find( nLanguage ) );
const SpellSvcByLangMap_t::iterator aIt( pThis->aSvcMap.find( nLanguage ) );
const LangSvcEntries_Spell *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : NULL; const LangSvcEntries_Spell *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : NULL;
if (pEntry) if (pEntry)
aRes = pEntry->aSvcImplNames; aRes = pEntry->aSvcImplNames;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment