From 24dbd76b8d03fa9800e42645bbf189ecb4ce39f4 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Mon, 18 May 2015 21:15:14 +0200 Subject: comphelper::PropertySetInfo remove unused parameter Change-Id: I960b31befe749860e926e5bb567c0b8d0f87867a --- comphelper/source/property/propertysetinfo.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/property/propertysetinfo.cxx b/comphelper/source/property/propertysetinfo.cxx index 3b107336a0ea..e9f5e3740d71 100644 --- a/comphelper/source/property/propertysetinfo.cxx +++ b/comphelper/source/property/propertysetinfo.cxx @@ -36,7 +36,7 @@ public: PropertyMapImpl() throw(); virtual ~PropertyMapImpl() throw(); - void add( PropertyMapEntry const * pMap, sal_Int32 nCount = -1 ) throw(); + void add(PropertyMapEntry const * pMap) throw(); void remove( const OUString& aName ) throw(); Sequence< Property > getProperties() throw(); @@ -60,13 +60,9 @@ PropertyMapImpl::~PropertyMapImpl() throw() { } -void PropertyMapImpl::add( PropertyMapEntry const * pMap, sal_Int32 nCount ) throw() +void PropertyMapImpl::add(PropertyMapEntry const * pMap) throw() { - // nCount < 0 => add all - // nCount == 0 => add nothing - // nCount > 0 => add at most nCount entries - - while( !pMap->maName.isEmpty() && ( ( nCount < 0) || ( nCount-- > 0 ) ) ) + while (!pMap->maName.isEmpty()) { #ifdef DBG_UTIL PropertyMap::iterator aIter = maPropertyMap.find( pMap->maName ); -- cgit v1.2.3