diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-10-04 12:14:49 +0900 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-05 06:18:24 +0000 |
commit | f811037c55f1fe41b2411958ace8c1b04c68ea14 (patch) | |
tree | 519ac5db422747a3aa169106f6f2bafebca2290a /starmath | |
parent | c9c61e0faab31c753f60361a2909c1e61481ac89 (diff) |
starmath: Avoid unnecessary cast
Change-Id: I18abd676b81c714e21ad83acbe4a4163fd5830fb
Reviewed-on: https://gerrit.libreoffice.org/19116
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlimport.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index 19a38907af2f..51b729b3239e 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -674,8 +674,7 @@ void SmXMLContext_Helper::ApplyAttrs() aToken.eType = TBOLD; else aToken.eType = TNBOLD; - SmStructureNode *pFontNode = static_cast<SmStructureNode *> - (new SmFontNode(aToken)); + SmFontNode *pFontNode = new SmFontNode(aToken); pFontNode->SetSubNodes(0,popOrZero(rNodeStack)); rNodeStack.push_front(pFontNode); } @@ -685,8 +684,7 @@ void SmXMLContext_Helper::ApplyAttrs() aToken.eType = TITALIC; else aToken.eType = TNITALIC; - SmStructureNode *pFontNode = static_cast<SmStructureNode *> - (new SmFontNode(aToken)); + SmFontNode *pFontNode = new SmFontNode(aToken); pFontNode->SetSubNodes(0,popOrZero(rNodeStack)); rNodeStack.push_front(pFontNode); } @@ -935,8 +933,7 @@ void SmXMLPhantomContext_Impl::EndElement() aToken.nLevel = 5; aToken.eType = TPHANTOM; - SmStructureNode *pPhantom = static_cast<SmStructureNode *> - (new SmFontNode(aToken)); + SmFontNode *pPhantom = new SmFontNode(aToken); SmNodeStack &rNodeStack = GetSmImport().GetNodeStack(); pPhantom->SetSubNodes(0,popOrZero(rNodeStack)); rNodeStack.push_front(pPhantom); |