diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-02-18 17:33:12 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-18 09:38:12 +0000 |
commit | d2f33d22836621506adec6814abf010fa2d683e6 (patch) | |
tree | a46cc1fc9f643022ce77f027ade969e295c7b4be /starmath/inc | |
parent | 945977f8495a14658520857d55ca30bfc1567da7 (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.hxx | 2 |
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)); } |