diff options
author | Neil <nyamatongwe@gmail.com> | 2017-04-07 19:44:59 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-04-07 19:44:59 +1000 |
commit | 1595b1fbedf5587bc7c60cc7a1156ac1bca69f59 (patch) | |
tree | 351e4826ae9f0f2996ac82d8c0c89c428bcb30b2 /include/Platform.h | |
parent | d97e0e4187f3130e2f06bc032040bc25485a2ece (diff) | |
download | scintilla-mirror-1595b1fbedf5587bc7c60cc7a1156ac1bca69f59.tar.gz |
Prefer C++ static cast over C-style casts.
Diffstat (limited to 'include/Platform.h')
-rw-r--r-- | include/Platform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Platform.h b/include/Platform.h index 411d42a03..570ba738b 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -78,7 +78,7 @@ namespace Scintilla { typedef float XYPOSITION; typedef double XYACCUMULATOR; inline int RoundXYPosition(XYPOSITION xyPos) { - return int(xyPos + 0.5); + return static_cast<int>(xyPos + 0.5); } // Underlying the implementation of the platform classes are platform specific types. |