aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaCocoa.mm
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2018-05-01 15:35:09 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2018-05-01 15:35:09 +1000
commitfdcdaeffcb7c4ce829f4fab806747e5c9f6ea46a (patch)
tree86b189d26983cdb1b1f00180664c4950c27160d2 /cocoa/ScintillaCocoa.mm
parentf8558fd3e20dd92e30a10753854219b9a1bab9c4 (diff)
downloadscintilla-mirror-fdcdaeffcb7c4ce829f4fab806747e5c9f6ea46a.tar.gz
Remove dead function and unnecessary casts. Convert C casts to C++ casts.
Use nullptr where unambiguous and is C++ as distinct from Objective C.
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
-rw-r--r--cocoa/ScintillaCocoa.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index 9b97f2470..1572d53ed 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -2344,9 +2344,9 @@ void ScintillaCocoa::MouseWheel(NSEvent *event) {
// In order to make scrolling with larger offset smoother we scroll less lines the larger the
// delta value is.
if (event.deltaY < 0)
- dY = -(int) sqrt(-10.0 * event.deltaY);
+ dY = -static_cast<int>(sqrt(-10.0 * event.deltaY));
else
- dY = (int) sqrt(10.0 * event.deltaY);
+ dY = static_cast<int>(sqrt(10.0 * event.deltaY));
if (command) {
// Zoom! We play with the font sizes in the styles.