summaryrefslogtreecommitdiff
path: root/starmath/source/node.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-03 10:43:00 +0200
committerNoel Grandin <noel@peralex.com>2014-12-03 10:43:53 +0200
commit0b30d5344cad60967aa79bad86916debbf4371e9 (patch)
tree1ddd7b583532b55e155f761aa5e97f818492ad6d /starmath/source/node.cxx
parent57fe57677887dd951000d3317690f8c628a58e02 (diff)
loplugin: cstylecast
Change-Id: I759f55218538c8d39018626f14e78cd56341d44b
Diffstat (limited to 'starmath/source/node.cxx')
-rw-r--r--starmath/source/node.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index bb2006a6428a..e7c01e345048 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -671,11 +671,11 @@ void SmStructureNode::GetAccessibleText( OUStringBuffer &rText ) const
sal_uInt16 nNodes = GetNumSubNodes();
for (sal_uInt16 i = 0; i < nNodes; ++i)
{
- const SmNode *pNode = ((SmStructureNode *) this)->GetSubNode(i);
+ SmNode *pNode = const_cast<SmStructureNode *>(this)->GetSubNode(i);
if (pNode)
{
if (pNode->IsVisible())
- ((SmStructureNode *) pNode)->nAccIndex = rText.getLength();
+ static_cast<SmStructureNode *>(pNode)->nAccIndex = rText.getLength();
pNode->GetAccessibleText( rText );
}
}
@@ -1401,7 +1401,7 @@ void SmBinDiagonalNode::Arrange(const OutputDevice &rDev, const SmFormat &rForma
OSL_ENSURE(pRight, "Sm : NULL pointer");
OSL_ENSURE(GetSubNode(2)->GetType() == NPOLYLINE, "Sm : wrong node type");
- SmPolyLineNode *pOper = (SmPolyLineNode *) GetSubNode(2);
+ SmPolyLineNode *pOper = static_cast<SmPolyLineNode *>(GetSubNode(2));
OSL_ENSURE(pOper, "Sm : NULL pointer");
//! some routines being called extract some info from the OutputDevice's
@@ -1692,7 +1692,7 @@ void SmBraceNode::Arrange(const OutputDevice &rDev, const SmFormat &rFormat)
if (bScale)
{
nBraceHeight = pBody->GetType() == NBRACEBODY ?
- ((SmBracebodyNode *) pBody)->GetBodyHeight()
+ static_cast<SmBracebodyNode *>(pBody)->GetBodyHeight()
: pBody->GetHeight();
nBraceHeight += 2 * (nBraceHeight * nPerc / 100L);
}
@@ -1885,7 +1885,7 @@ SmNode * SmOperNode::GetSymbol()
OSL_ENSURE(pNode, "Sm: NULL pointer!");
if (pNode->GetType() == NSUBSUP)
- pNode = ((SmSubSupNode *) pNode)->GetBody();
+ pNode = static_cast<SmSubSupNode *>(pNode)->GetBody();
OSL_ENSURE(pNode, "Sm: NULL pointer!");
return pNode;