summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-02-16 16:56:10 +0100
committerLuboš Luňák <l.lunak@collabora.com>2022-02-17 12:08:17 +0100
commit855a0f40b285a438f8bd2ea61ebb8717daa16292 (patch)
tree21780661aa988c822b02e683234ebde7989f9eaa /sc
parentf6b9c471cace1963e8b625ecfe2c20f5248984eb (diff)
std::map -> std::unordered_map
Change-Id: I70a039af151b7dd398d2665e6fc9bb825f719e39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130006 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xetable.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx
index 140c973a30b5..f8ec4440b74d 100644
--- a/sc/source/filter/excel/xetable.cxx
+++ b/sc/source/filter/excel/xetable.cxx
@@ -1759,7 +1759,7 @@ void XclExpColinfoBuffer::Finalize( ScfUInt16Vec& rXFIndexes, bool bXLS )
}
// put XF indexes into passed vector, collect use count of all different widths
- std::map< sal_uInt16, sal_uInt16 > aWidthMap;
+ std::unordered_map< sal_uInt16, sal_uInt16 > aWidthMap;
sal_uInt16 nMaxColCount = 0;
sal_uInt16 nMaxUsedWidth = 0;
for( nPos = 0, nSize = maColInfos.GetSize(); nPos < nSize; ++nPos )
@@ -1951,7 +1951,7 @@ void XclExpRow::Finalize( const ScfUInt16Vec& rColXFIndexes, bool bProgress )
// *** Find default row format *** ----------------------------------------
// find most used XF index in the row
- std::map< sal_uInt16, size_t > aIndexMap;
+ std::unordered_map< sal_uInt16, size_t > aIndexMap;
sal_uInt16 nRowXFIndex = EXC_XF_DEFAULTCELL;
size_t nMaxXFCount = 0;
const size_t nHalfIndexes = aXFIndexes.size() / 2;