summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-05-16 13:11:50 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-05-16 05:22:36 +0000
commit75c10400a60c084c26269de1e6cebac8e2583619 (patch)
tree893d03989cba187cbd3acf819639abb2157cd17f /starmath
parente8c1727b37c7cdaec20407a38aeceec853b15d32 (diff)
Avoid C-style cast
Change-Id: I777920cb2e9dcc3f2b20f5a96c88bf48fcb94895 Reviewed-on: https://gerrit.libreoffice.org/25024 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/node.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 8b1559dafca2..7767b7022e2b 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -1252,7 +1252,8 @@ void SmSubSupNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat)
// iterate over all possible sub-/supscripts
SmRect aTmpRect (rBodyRect);
for (int i = 0; i < SUBSUP_NUM_ENTRIES; i++)
- { SmSubSup eSubSup = (SmSubSup) i; // cast
+ {
+ SmSubSup eSubSup = static_cast<SmSubSup>(i);
SmNode *pSubSup = GetSubSup(eSubSup);
if (!pSubSup)