diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-19 13:43:23 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-20 08:14:13 +0000 |
commit | fe3fd05966a668c1cdf53e8221b8614e9a07de65 (patch) | |
tree | 4c6c105b78d0cb9c45431c2fecd2583d6a2aa85c /framework/source/uielement/uicommanddescription.cxx | |
parent | 1d5c39192e81f950289dbdd7991a0e8a67c0aabc (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 'framework/source/uielement/uicommanddescription.cxx')
-rw-r--r-- | framework/source/uielement/uicommanddescription.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/framework/source/uielement/uicommanddescription.cxx b/framework/source/uielement/uicommanddescription.cxx index 01e9285d356b..462c69d77895 100644 --- a/framework/source/uielement/uicommanddescription.cxx +++ b/framework/source/uielement/uicommanddescription.cxx @@ -721,17 +721,7 @@ throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard g(rBHelper.rMutex); - Sequence< OUString > aSeq( m_aModuleToCommandFileMap.size() ); - - sal_Int32 n = 0; - ModuleToCommandFileMap::const_iterator pIter = m_aModuleToCommandFileMap.begin(); - while ( pIter != m_aModuleToCommandFileMap.end() ) - { - aSeq[n++] = pIter->first; - ++pIter; - } - - return aSeq; + return comphelper::mapKeysToSequence( m_aModuleToCommandFileMap ); } sal_Bool SAL_CALL UICommandDescription::hasByName( const OUString& aName ) |