diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2017-04-06 18:53:04 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2017-04-07 01:08:49 +0000 |
commit | a9bd83bdd390724372d2da3451fae083a72af5b0 (patch) | |
tree | 79c63645e01fc11404ad1c1dcbb23895003a0378 /starmath/inc | |
parent | 709f49bce86d2df4154d8075818f57cacfecb401 (diff) |
starmath: Move SmNodeStack to mathmlimport.hxx
which is the only place using it.
Change-Id: I87d5a1f0d0993f7585c9767fc32eb46158503dfb
Reviewed-on: https://gerrit.libreoffice.org/36197
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/node.hxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 79c4e0ff33a4..7c9fbcec892b 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -31,7 +31,6 @@ #include <cassert> #include <memory> #include <vector> -#include <deque> enum class FontAttribute { None = 0x0000, @@ -76,19 +75,8 @@ class SmDocShell; class SmNode; class SmStructureNode; -typedef std::deque<std::unique_ptr<SmNode>> SmNodeStack; typedef std::vector< SmNode * > SmNodeArray; -template < typename T > -T* popOrZero(std::deque<std::unique_ptr<T>> & rStack) -{ - if (rStack.empty()) - return nullptr; - std::unique_ptr<T> pTmp(std::move(rStack.front())); - rStack.pop_front(); - return pTmp.release(); -} - enum SmScaleMode { SCALE_NONE, SCALE_WIDTH, SCALE_HEIGHT }; enum SmNodeType |