From 8130e18b8ca859853c2b69622d4f41954f8e7cef Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 11 Feb 2014 15:15:55 +0000 Subject: coverity#705124 Invalid iterator comparison Change-Id: I3066e838c13cd6a937c7dd37da23310ddfb014c4 --- linguistic/source/spelldsp.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'linguistic') 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; -- cgit