diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-29 21:23:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-01 09:09:34 +0200 |
commit | 12062cb281dce9b23bf643dce7744520cf8820f7 (patch) | |
tree | b52c70605401792385cd8e3f09d027594d5a0218 /l10ntools/source | |
parent | tdf#126584 Disable styles next style edit style button (diff) | |
download | core-12062cb281dce9b23bf643dce7744520cf8820f7.tar.gz core-12062cb281dce9b23bf643dce7744520cf8820f7.zip |
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.cxx | 2 |
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 ); |