add mapKeysToSequence/mapValuesToSequence methods to comphelper
and use them Change-Id: If4dc9df63db37185228aeaaab2979498d61304ec Reviewed-on: https://gerrit.libreoffice.org/20055 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
committed by
Noel Grandin
parent
1d5c39192e
commit
fe3fd05966
@@ -520,13 +520,7 @@ ReadOnlyEventsNameContainer::getByName( const OUString& aName ) throw (container
|
||||
Sequence< OUString > SAL_CALL
|
||||
ReadOnlyEventsNameContainer::getElementNames( ) throw (RuntimeException, std::exception)
|
||||
{
|
||||
Sequence< OUString > names(m_hEvents.size());
|
||||
OUString* pDest = names.getArray();
|
||||
EventSupplierHash::const_iterator it = m_hEvents.begin();
|
||||
EventSupplierHash::const_iterator it_end = m_hEvents.end();
|
||||
for ( sal_Int32 index = 0; it != it_end; ++index, ++pDest, ++it )
|
||||
*pDest = it->first;
|
||||
return names;
|
||||
return comphelper::mapKeysToSequence(m_hEvents);
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL
|
||||
|
Reference in New Issue
Block a user