diff options
Diffstat (limited to 'sc/source/core/data/documen2.cxx')
-rw-r--r-- | sc/source/core/data/documen2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx index 6cba2a5eda6b..4dde125e4dba 100644 --- a/sc/source/core/data/documen2.cxx +++ b/sc/source/core/data/documen2.cxx @@ -128,8 +128,8 @@ struct ScLookupCacheMapImpl private: void freeCaches() { - for (auto it( aCacheMap.begin()); it != aCacheMap.end(); ++it) - delete (*it).second; + for (auto& aCacheItem : aCacheMap) + delete aCacheItem.second; } }; |