[Libreoffice-commits] core.git: starmath/source
Takeshi Abe
tabe at fixedpoint.jp
Sun Oct 4 23:18:47 PDT 2015
starmath/source/mathmlimport.cxx | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
New commits:
commit f811037c55f1fe41b2411958ace8c1b04c68ea14
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Sun Oct 4 12:14:49 2015 +0900
starmath: Avoid unnecessary cast
Change-Id: I18abd676b81c714e21ad83acbe4a4163fd5830fb
Reviewed-on: https://gerrit.libreoffice.org/19116
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 19a3890..51b729b 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);
More information about the Libreoffice-commits
mailing list