svx/source/dialog/framelinkarray.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit db88842170a041267b55dda64f8280a1394202b8
Author:     Noel Grandin <[email protected]>
AuthorDate: Sat Jan 28 10:47:15 2023 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Mon Jan 30 09:07:40 2023 +0000

    tdf#150534 use unordered_set for checking of lines already crossed
    
    Change-Id: Ib864f9e8b7a3a2e6c4db5f2eec5333dc74bf9f6a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146334
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/svx/source/dialog/framelinkarray.cxx 
b/svx/source/dialog/framelinkarray.cxx
index c096e86bb3fe..a14279f329f1 100644
--- a/svx/source/dialog/framelinkarray.cxx
+++ b/svx/source/dialog/framelinkarray.cxx
@@ -22,6 +22,7 @@
 #include <math.h>
 #include <vector>
 #include <set>
+#include <unordered_set>
 #include <algorithm>
 #include <tools/debug.hxx>
 #include <tools/gen.hxx>
@@ -1279,7 +1280,7 @@ drawinglayer::primitive2d::Primitive2DContainer 
Array::CreateB2DPrimitiveRange(
 
     // remember for which merged cells crossed lines were already created. To
     // do so, hold the sal_Int32 cell index in a set for fast check
-    std::set< sal_Int32 > aMergedCells;
+    std::unordered_set< sal_Int32 > aMergedCells;
 
     for (sal_Int32 nRow(nStartRow); nRow <= nEndRow; ++nRow)
     {

Reply via email to