summaryrefslogtreecommitdiff
path: root/framework/source/uiconfiguration/graphicnameaccess.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uiconfiguration/graphicnameaccess.cxx')
-rw-r--r--framework/source/uiconfiguration/graphicnameaccess.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/framework/source/uiconfiguration/graphicnameaccess.cxx b/framework/source/uiconfiguration/graphicnameaccess.cxx
index 69c083da09ba..2b12988f5c2e 100644
--- a/framework/source/uiconfiguration/graphicnameaccess.cxx
+++ b/framework/source/uiconfiguration/graphicnameaccess.cxx
@@ -57,15 +57,7 @@ throw(css::uno::RuntimeException, std::exception)
{
if ( m_aSeq.getLength() == 0 )
{
- uno::Sequence< OUString > aSeq( m_aNameToElementMap.size() );
- NameGraphicHashMap::const_iterator pIter = m_aNameToElementMap.begin();
- sal_Int32 i( 0);
- while ( pIter != m_aNameToElementMap.end())
- {
- aSeq[i++] = pIter->first;
- ++pIter;
- }
- m_aSeq = aSeq;
+ m_aSeq = comphelper::mapKeysToSequence(m_aNameToElementMap);
}
return m_aSeq;