summaryrefslogtreecommitdiff
path: root/xmloff/source/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-19 13:43:23 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-20 08:14:13 +0000
commitfe3fd05966a668c1cdf53e8221b8614e9a07de65 (patch)
tree4c6c105b78d0cb9c45431c2fecd2583d6a2aa85c /xmloff/source/forms
parent1d5c39192e81f950289dbdd7991a0e8a67c0aabc (diff)
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>
Diffstat (limited to 'xmloff/source/forms')
-rw-r--r--xmloff/source/forms/eventexport.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/xmloff/source/forms/eventexport.cxx b/xmloff/source/forms/eventexport.cxx
index e26ed665ceec..57b995cd33f4 100644
--- a/xmloff/source/forms/eventexport.cxx
+++ b/xmloff/source/forms/eventexport.cxx
@@ -21,6 +21,7 @@
#include <osl/diagnose.h>
#include "strings.hxx"
#include <tools/debug.hxx>
+#include <comphelper/sequence.hxx>
namespace xmloff
{
@@ -106,15 +107,7 @@ namespace xmloff
Sequence< OUString > SAL_CALL OEventDescriptorMapper::getElementNames( ) throw(RuntimeException, std::exception)
{
- Sequence< OUString > aReturn(m_aMappedEvents.size());
- OUString* pReturn = aReturn.getArray();
- for ( MapString2PropertyValueSequence::const_iterator aCollect = m_aMappedEvents.begin();
- aCollect != m_aMappedEvents.end();
- ++aCollect, ++pReturn
- )
- *pReturn = aCollect->first;
-
- return aReturn;
+ return comphelper::mapKeysToSequence(m_aMappedEvents);
}
sal_Bool SAL_CALL OEventDescriptorMapper::hasByName( const OUString& _rName ) throw(RuntimeException, std::exception)