summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-11 15:14:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-11 20:21:47 +0000
commit9e422a0d757eb88a976a3b1aeeae936ba6211571 (patch)
treefd3f458746bc414045606be1ea704e027eedb355 /linguistic
parentd613a0e5875e25a7c217d8f490618b1da9aa9b1d (diff)
coverity#705123 Invalid iterator comparison
Change-Id: I0b055ba0a4c19f6cb6e7b929baee8aee8ca0dc78
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/hyphdsp.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx
index 52f55f10dc86..01d49a275348 100644
--- a/linguistic/source/hyphdsp.cxx
+++ b/linguistic/source/hyphdsp.cxx
@@ -699,8 +699,7 @@ Sequence< OUString >
// search for entry with that language and use data from that
sal_Int16 nLanguage = LinguLocaleToLanguage( rLocale );
- HyphenatorDispatcher *pThis = (HyphenatorDispatcher *) this;
- const HyphSvcByLangMap_t::iterator aIt( pThis->aSvcMap.find( nLanguage ) );
+ const HyphSvcByLangMap_t::const_iterator aIt( aSvcMap.find( nLanguage ) );
const LangSvcEntries_Hyph *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : NULL;
if (pEntry)
{