summaryrefslogtreecommitdiff
path: root/starmath/inc
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-02-18 17:33:12 +0900
committerCaolán McNamara <caolanm@redhat.com>2016-02-18 09:38:12 +0000
commitd2f33d22836621506adec6814abf010fa2d683e6 (patch)
treea46cc1fc9f643022ce77f027ade969e295c7b4be /starmath/inc
parent945977f8495a14658520857d55ca30bfc1567da7 (diff)
starmath: Avoid C-style cast
Change-Id: Id54997718a61b1b5a488922f05374c559f1e4454 Reviewed-on: https://gerrit.libreoffice.org/22460 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/inc')
-rw-r--r--starmath/inc/rect.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/inc/rect.hxx b/starmath/inc/rect.hxx
index 3ef8ec483c92..31b337c9cdec 100644
--- a/starmath/inc/rect.hxx
+++ b/starmath/inc/rect.hxx
@@ -39,7 +39,7 @@ bool SmIsMathAlpha(const OUString &rText);
inline long SmFromTo(long nFrom, long nTo, double fRelDist)
{
- return nFrom + (long) (fRelDist * (nTo - nFrom));
+ return nFrom + static_cast<long>(fRelDist * (nTo - nFrom));
}