From b0eff57aaeb34d25dc011249828f5029df951f57 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 7 Aug 2014 20:14:30 +0200 Subject: [PATCH] cppcheck: Same iterator used with different containers Change-Id: Idc7f16dc4c81857d7a3f508ed830904d90a762b0 --- oox/source/core/xmlfilterbase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx index f236a9e2777f..b54cd511c8d0 100644 --- a/oox/source/core/xmlfilterbase.cxx +++ b/oox/source/core/xmlfilterbase.cxx @@ -679,7 +679,7 @@ writeAppProperties( XmlFilterBase& rSelf, Reference< XDocumentProperties > xProp uno::Reference xUserDefinedProperties(xProperties->getUserDefinedProperties(), uno::UNO_QUERY); comphelper::SequenceAsHashMap aUserDefinedProperties(xUserDefinedProperties->getPropertyValues()); it = aUserDefinedProperties.find("Company"); - if (it != aStats.end()) + if (it != aUserDefinedProperties.end()) { OUString aValue; if (it->second >>= aValue)