summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-12-03 12:07:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-04 07:01:53 +0100
commit8d84a0dc8d83cc7dbe77dec0bb4e2f6b9768e1d9 (patch)
tree28dda47bfa85f8e255bd18ac3f2ce2992a2de9ca /starmath
parent60e8941fd581bb06cbf6be62edb8c387e7c07812 (diff)
some std::set->o3tl::sorted_vector
which is much better cache-wise Change-Id: Iacec0df48f043bcdd761ed30c1b1513850a00152 Reviewed-on: https://gerrit.libreoffice.org/84311 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/rect.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx
index 19ba9d1d3007..d49daf7474e4 100644
--- a/starmath/source/rect.cxx
+++ b/starmath/source/rect.cxx
@@ -18,6 +18,7 @@
*/
#include <osl/diagnose.h>
+#include <o3tl/sorted_vector.hxx>
#include <vcl/metric.hxx>
#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
@@ -29,7 +30,6 @@
#include <smmod.hxx>
#include <cassert>
-#include <unordered_set>
namespace {
@@ -116,7 +116,7 @@ bool SmIsMathAlpha(const OUString &rText)
// Set of symbols, which should be treated as letters in StarMath Font
// (to get a normal (non-clipped) SmRect in contrast to the other operators
// and symbols).
- static std::unordered_set<sal_Unicode> const aMathAlpha({
+ static o3tl::sorted_vector<sal_Unicode> const aMathAlpha({
MS_ALEPH, MS_IM, MS_RE,
MS_WP, u'\xE070', MS_EMPTYSET,
u'\x2113', u'\xE0D6', u'\x2107',