summaryrefslogtreecommitdiff
path: root/starmath/inc/node.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/inc/node.hxx')
-rw-r--r--starmath/inc/node.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index 9a3516c57837..a6aae542d0aa 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -1029,7 +1029,7 @@ public:
/** Get body (Not NULL) */
const SmNode * GetBody() const
{
- return ((SmSubSupNode *) this)->GetBody();
+ return const_cast<SmSubSupNode *>(this)->GetBody();
}
void SetUseLimits(bool bVal) { bUseLimits = bVal; }
@@ -1183,7 +1183,7 @@ public:
SmNode * GetSymbol();
const SmNode * GetSymbol() const
{
- return ((SmOperNode *) this)->GetSymbol();
+ return const_cast<SmOperNode *>(this)->GetSymbol();
}
long CalcSymbolHeight(const SmNode &rSymbol, const SmFormat &rFormat) const;