diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-11 15:15:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-11 20:21:48 +0000 |
commit | 8130e18b8ca859853c2b69622d4f41954f8e7cef (patch) | |
tree | 0fbbb0d23691698f77dd19fe2411ffa1545736f6 /linguistic | |
parent | 9e422a0d757eb88a976a3b1aeeae936ba6211571 (diff) |
coverity#705124 Invalid iterator comparison
Change-Id: I3066e838c13cd6a937c7dd37da23310ddfb014c4
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/spelldsp.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx index 9438bcb38710..6435832fc764 100644 --- a/linguistic/source/spelldsp.cxx +++ b/linguistic/source/spelldsp.cxx @@ -797,8 +797,7 @@ Sequence< OUString > // search for entry with that language and use data from that sal_Int16 nLanguage = LinguLocaleToLanguage( rLocale ); - SpellCheckerDispatcher *pThis = (SpellCheckerDispatcher *) this; - const SpellSvcByLangMap_t::iterator aIt( pThis->aSvcMap.find( nLanguage ) ); + const SpellSvcByLangMap_t::const_iterator aIt( aSvcMap.find( nLanguage ) ); const LangSvcEntries_Spell *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : NULL; if (pEntry) aRes = pEntry->aSvcImplNames; |