starmath/source/node.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 75c10400a60c084c26269de1e6cebac8e2583619
Author: Takeshi Abe <[email protected]>
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 <[email protected]>
    Reviewed-by: Takeshi Abe <[email protected]>

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)
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to