summaryrefslogtreecommitdiff
path: root/l10ntools/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-29 21:23:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-01 09:09:34 +0200
commit12062cb281dce9b23bf643dce7744520cf8820f7 (patch)
treeb52c70605401792385cd8e3f09d027594d5a0218 /l10ntools/source
parent0cc2ec0f0f2380d2c5456a5b8c9bb1789e832cde (diff)
new loplugin:mapindex
Change-Id: I6b5f73b2187009e95d4d666e03e5803f522cee06 Reviewed-on: https://gerrit.libreoffice.org/76584 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools/source')
-rw-r--r--l10ntools/source/xmlparse.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx
index 088729aaf051..73fff95d831d 100644
--- a/l10ntools/source/xmlparse.cxx
+++ b/l10ntools/source/xmlparse.cxx
@@ -376,7 +376,7 @@ void XMLFile::InsertL10NElement( XMLElement* pElement )
else // Already there
{
pElem=pos->second;
- if ( (*pElem)[ sLanguage ] )
+ if ( pElem->count(sLanguage) )
{
fprintf(stdout,"Error: Duplicated entry. ID = %s LANG = %s in File %s\n", sId.getStr(), sLanguage.getStr(), m_sFileName.getStr() );
exit( -1 );