diff options
-rw-r--r-- | comphelper/source/property/propertysetinfo.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
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 <comphelper/propertysetinfo.hxx> -#include <osl/diagnose.h> 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; |