diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-05-18 21:17:59 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-05-18 22:20:47 +0200 |
commit | 708f0d2afd8f988fbf5106543465815dd18b81ec (patch) | |
tree | 63117b229ecbc406fa9cf3ea13499bb709370060 /comphelper | |
parent | 24dbd76b8d03fa9800e42645bbf189ecb4ce39f4 (diff) |
comphelper::PropertySetInfo: convert legacy assertion
Change-Id: I23dbe1b3cf6cc611efe8a39c49f4e5b47bf25a49
Diffstat (limited to 'comphelper')
-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; |