summaryrefslogtreecommitdiff
path: root/starmath/source/accessibility.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-02-19 17:31:12 +0900
committerMichael Stahl <mstahl@redhat.com>2016-02-19 11:43:13 +0000
commit75da70ccbf7946d3c8de2572d98c2f9cf534b751 (patch)
tree46cace1d39be91721b2961b4b0e44b6fd403512c /starmath/source/accessibility.cxx
parent778e9a65bf5af07c4caeff969a0324e43a78e66b (diff)
starmath: Avoid C-style cast
Change-Id: I96efea344dc4ec5c1f20060bb51ea5e853113c9c Reviewed-on: https://gerrit.libreoffice.org/22497 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath/source/accessibility.cxx')
-rw-r--r--starmath/source/accessibility.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index 1b61f14c566f..06a46ef7479e 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -265,7 +265,7 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getForeground()
if (!pWin)
throw RuntimeException();
- return (sal_Int32) pWin->GetTextColor().GetColor();
+ return static_cast<sal_Int32>(pWin->GetTextColor().GetColor());
}
sal_Int32 SAL_CALL SmGraphicAccessible::getBackground()
@@ -281,7 +281,7 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getBackground()
nCol = pWin->GetSettings().GetStyleSettings().GetWindowColor().GetColor();
else
nCol = aWall.GetColor().GetColor();
- return (sal_Int32) nCol;
+ return static_cast<sal_Int32>(nCol);
}
sal_Int32 SAL_CALL SmGraphicAccessible::getAccessibleChildCount()
@@ -1743,7 +1743,7 @@ sal_Int32 SAL_CALL SmEditAccessible::getForeground()
if (!pWin)
throw RuntimeException();
- return (sal_Int32) pWin->GetTextColor().GetColor();
+ return static_cast<sal_Int32>(pWin->GetTextColor().GetColor());
}
sal_Int32 SAL_CALL SmEditAccessible::getBackground()
@@ -1759,7 +1759,7 @@ sal_Int32 SAL_CALL SmEditAccessible::getBackground()
nCol = pWin->GetSettings().GetStyleSettings().GetWindowColor().GetColor();
else
nCol = aWall.GetColor().GetColor();
- return (sal_Int32) nCol;
+ return static_cast<sal_Int32>(nCol);
}
// XAccessibleContext