diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-03-17 21:42:27 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-03-17 23:08:48 +0100 |
commit | 823ef9ef3238efd92895254e0f8042ff1e543bb6 (patch) | |
tree | 08d58131644869f46319b246b919a33bbf64f46e /framework/source/xml | |
parent | b9cf7da2907f759c98b801939e7c04cf0b80388f (diff) |
Use for-range loops in framework
Change-Id: I72ea832848fd7c76863bcee70a3303de488c0b0f
Reviewed-on: https://gerrit.libreoffice.org/51471
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'framework/source/xml')
-rw-r--r-- | framework/source/xml/acceleratorconfigurationwriter.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/framework/source/xml/acceleratorconfigurationwriter.cxx b/framework/source/xml/acceleratorconfigurationwriter.cxx index f5e84631d652..80270560a774 100644 --- a/framework/source/xml/acceleratorconfigurationwriter.cxx +++ b/framework/source/xml/acceleratorconfigurationwriter.cxx @@ -73,20 +73,15 @@ void AcceleratorConfigurationWriter::flush() // TODO think about threadsafe using of cache AcceleratorCache::TKeyList lKeys = m_rContainer.getAllKeys(); - AcceleratorCache::TKeyList::const_iterator pKey; - for ( pKey = lKeys.begin(); - pKey != lKeys.end(); - ++pKey ) + for (auto const& lKey : lKeys) { - const css::awt::KeyEvent& rKey = *pKey; - const OUString& rCommand = m_rContainer.getCommandByKey(rKey); - impl_ts_writeKeyCommandPair(rKey, rCommand, xExtendedCFG); + const OUString& rCommand = m_rContainer.getCommandByKey(lKey); + impl_ts_writeKeyCommandPair(lKey, rCommand, xExtendedCFG); } /* TODO write key-command list - std::vector< SfxAcceleratorConfigItem>::const_iterator p; - for ( p = m_aWriteAcceleratorList.begin(); p != m_aWriteAcceleratorList.end(); p++ ) - WriteAcceleratorItem( *p ); + for (auto const& writeAccelerator : m_aWriteAcceleratorList) + WriteAcceleratorItem(writeAccelerator); */ xExtendedCFG->ignorableWhitespace(OUString()); |