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>
This commit is contained in:
@@ -1781,7 +1781,9 @@ std::unique_ptr<SmNode> SmParser5::DoTerm(bool bGroupNumberIdent)
|
|||||||
return DoUnOper();
|
return DoUnOper();
|
||||||
if (TokenInGroup(TG::Attribute) || TokenInGroup(TG::FontAttr))
|
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;
|
bool bIsAttr;
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user