summaryrefslogtreecommitdiff
path: root/comphelper/source/property
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-05-18 21:15:14 +0200
committerMichael Stahl <mstahl@redhat.com>2015-05-18 22:20:47 +0200
commit24dbd76b8d03fa9800e42645bbf189ecb4ce39f4 (patch)
tree4e3edf9d201610be45310a9de40e179fe154b298 /comphelper/source/property
parent0728e9677ddcd540a5c3acd81aafb2b0013840db (diff)
comphelper::PropertySetInfo remove unused parameter
Change-Id: I960b31befe749860e926e5bb567c0b8d0f87867a
Diffstat (limited to 'comphelper/source/property')
-rw-r--r--comphelper/source/property/propertysetinfo.cxx10
1 files changed, 3 insertions, 7 deletions
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 );