[Libreoffice-commits] core.git: starmath/source
Takeshi Abe
tabe at fixedpoint.jp
Mon May 16 05:22:56 UTC 2016
starmath/source/node.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 75c10400a60c084c26269de1e6cebac8e2583619
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Mon May 16 13:11:50 2016 +0900
Avoid C-style cast
Change-Id: I777920cb2e9dcc3f2b20f5a96c88bf48fcb94895
Reviewed-on: https://gerrit.libreoffice.org/25024
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Takeshi Abe <tabe at fixedpoint.jp>
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 8b1559d..7767b70 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)
More information about the Libreoffice-commits
mailing list