summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-11 15:16:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-11 20:21:48 +0000
commit9d7cba2f91225fa19703ba6f1d884bbe12596071 (patch)
tree37f487919853d865fa5cf718a54475c8bb958d0d /linguistic
parent8130e18b8ca859853c2b69622d4f41954f8e7cef (diff)
coverity#705125 Invalid iterator comparison
Change-Id: Ifa84db9cc6bd3622a562c31f7624aee6fa157807
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/thesdsp.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/linguistic/source/thesdsp.cxx b/linguistic/source/thesdsp.cxx
index 9d96fc4d9d77..44f5fa95e051 100644
--- a/linguistic/source/thesdsp.cxx
+++ b/linguistic/source/thesdsp.cxx
@@ -243,8 +243,7 @@ Sequence< OUString >
// search for entry with that language and use data from that
sal_Int16 nLanguage = LinguLocaleToLanguage( rLocale );
- ThesaurusDispatcher *pThis = (ThesaurusDispatcher *) this;
- const ThesSvcByLangMap_t::iterator aIt( pThis->aSvcMap.find( nLanguage ) );
+ const ThesSvcByLangMap_t::const_iterator aIt( aSvcMap.find( nLanguage ) );
const LangSvcEntries_Thes *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : NULL;
if (pEntry)
aRes = pEntry->aSvcImplNames;