summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-12 19:46:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-13 14:01:02 +0200
commit205f99d6cf4dcfab6ee6c66efd1788200ac118c4 (patch)
tree8966df0aa64c5c0013821a20f910fc100275447d /starmath
parentd01f8813084b245492c83cf750bb59bcd2659621 (diff)
use vector as backing for stack
which is a little faster Change-Id: Id086b67eba3ec00dc86a48a0fdec1a467b600d1c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134268 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/parse5.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/starmath/source/parse5.cxx b/starmath/source/parse5.cxx
index 1bc218f646f0..06aa373aa037 100644
--- a/starmath/source/parse5.cxx
+++ b/starmath/source/parse5.cxx
@@ -1781,7 +1781,9 @@ std::unique_ptr<SmNode> SmParser5::DoTerm(bool bGroupNumberIdent)
return DoUnOper();
if (TokenInGroup(TG::Attribute) || TokenInGroup(TG::FontAttr))
{
- std::stack<std::unique_ptr<SmStructureNode>> aStack;
+ std::stack<std::unique_ptr<SmStructureNode>,
+ std::vector<std::unique_ptr<SmStructureNode>>>
+ aStack;
bool bIsAttr;
for (;;)
{