diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-03-13 21:11:09 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-16 20:16:46 +0100 |
commit | 10a48c737d347bcce765c8fbe009bc1dd0bb0c4d (patch) | |
tree | 6688e9ca36964bcbf589e60452a331b49a81bfde /bridges/source/cpp_uno/shared/vtablefactory.cxx | |
parent | bb9728bbf9bb29ef2b6ca582a382f66e9adf2623 (diff) |
Simplify containers iterations in basctl, basegfx, basic, bridges
Use range-based loop or replace with STL functions
Change-Id: I8594740103bdc2091c2d03d4b92bbe8393f5378c
Reviewed-on: https://gerrit.libreoffice.org/69223
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bridges/source/cpp_uno/shared/vtablefactory.cxx')
-rw-r--r-- | bridges/source/cpp_uno/shared/vtablefactory.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bridges/source/cpp_uno/shared/vtablefactory.cxx b/bridges/source/cpp_uno/shared/vtablefactory.cxx index 4789b0341ebd..a40e9e08b53d 100644 --- a/bridges/source/cpp_uno/shared/vtablefactory.cxx +++ b/bridges/source/cpp_uno/shared/vtablefactory.cxx @@ -181,11 +181,11 @@ VtableFactory::VtableFactory(): m_arena( VtableFactory::~VtableFactory() { { osl::MutexGuard guard(m_mutex); - for (Map::iterator i(m_map.begin()); i != m_map.end(); ++i) { - for (sal_Int32 j = 0; j < i->second.count; ++j) { - freeBlock(i->second.blocks[j]); + for (auto& rEntry : m_map) { + for (sal_Int32 j = 0; j < rEntry.second.count; ++j) { + freeBlock(rEntry.second.blocks[j]); } - delete[] i->second.blocks; + delete[] rEntry.second.blocks; } } rtl_arena_destroy(m_arena); |