summaryrefslogtreecommitdiff
path: root/starmath/source/mathmlimport.hxx
diff options
context:
space:
mode:
authorMarcel Metz <mmetz@adrian-broher.net>2011-12-05 20:08:35 +0100
committerEike Rathke <erack@redhat.com>2011-12-05 22:53:17 +0100
commitf5b63844cc6a4b96fcf0db0c0c9c1194847fc914 (patch)
treef627bfa5ff29940a8b7af8d76e68652cdc06430b /starmath/source/mathmlimport.hxx
parent6c6bc18961eb74074183a68d8dbea7e4bbefe059 (diff)
Replace SmNodeStack with std::stack< SmNode* >
Diffstat (limited to 'starmath/source/mathmlimport.hxx')
-rw-r--r--starmath/source/mathmlimport.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx
index db44e4a336ea..5ed8096300ac 100644
--- a/starmath/source/mathmlimport.hxx
+++ b/starmath/source/mathmlimport.hxx
@@ -252,7 +252,13 @@ public:
const SvXMLTokenMap &GetColorTokenMap();
SmNodeStack & GetNodeStack() { return aNodeStack; }
- SmNode *GetTree() { return aNodeStack.Pop(); }
+ SmNode *GetTree()
+ {
+ SmNode* result = aNodeStack.top();
+ aNodeStack.pop();
+ return result;
+ }
+
sal_Bool GetSuccess() { return bSuccess; }
String &GetText() { return aText; }