From 708f0d2afd8f988fbf5106543465815dd18b81ec Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Mon, 18 May 2015 21:17:59 +0200 Subject: comphelper::PropertySetInfo: convert legacy assertion Change-Id: I23dbe1b3cf6cc611efe8a39c49f4e5b47bf25a49 --- comphelper/source/property/propertysetinfo.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/property/propertysetinfo.cxx b/comphelper/source/property/propertysetinfo.cxx index e9f5e3740d71..bfd8e58c2c85 100644 --- a/comphelper/source/property/propertysetinfo.cxx +++ b/comphelper/source/property/propertysetinfo.cxx @@ -20,7 +20,6 @@ #include -#include using namespace ::comphelper; using namespace ::com::sun::star; @@ -64,13 +63,8 @@ void PropertyMapImpl::add(PropertyMapEntry const * pMap) throw() { while (!pMap->maName.isEmpty()) { -#ifdef DBG_UTIL - PropertyMap::iterator aIter = maPropertyMap.find( pMap->maName ); - if( aIter != maPropertyMap.end() ) - { - OSL_FAIL( "Warning: PropertyMapEntry added twice, possible error!"); - } -#endif + // check for duplicates + assert(maPropertyMap.find(pMap->maName) == maPropertyMap.end()); maPropertyMap[pMap->maName] = pMap; -- cgit