Kaydet (Commit) 708f0d2a authored tarafından Michael Stahl's avatar Michael Stahl

comphelper::PropertySetInfo: convert legacy assertion

Change-Id: I23dbe1b3cf6cc611efe8a39c49f4e5b47bf25a49
üst 24dbd76b
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <comphelper/propertysetinfo.hxx> #include <comphelper/propertysetinfo.hxx>
#include <osl/diagnose.h>
using namespace ::comphelper; using namespace ::comphelper;
using namespace ::com::sun::star; using namespace ::com::sun::star;
...@@ -64,13 +63,8 @@ void PropertyMapImpl::add(PropertyMapEntry const * pMap) throw() ...@@ -64,13 +63,8 @@ void PropertyMapImpl::add(PropertyMapEntry const * pMap) throw()
{ {
while (!pMap->maName.isEmpty()) while (!pMap->maName.isEmpty())
{ {
#ifdef DBG_UTIL // check for duplicates
PropertyMap::iterator aIter = maPropertyMap.find( pMap->maName ); assert(maPropertyMap.find(pMap->maName) == maPropertyMap.end());
if( aIter != maPropertyMap.end() )
{
OSL_FAIL( "Warning: PropertyMapEntry added twice, possible error!");
}
#endif
maPropertyMap[pMap->maName] = pMap; maPropertyMap[pMap->maName] = pMap;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment