diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-04-30 09:50:12 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-04-30 09:50:12 +1000 |
| commit | 24222616ca4144a340d3086fb60fdbfe3b8aa514 (patch) | |
| tree | cd1b5becf577d3a7e1de6cb6c27dabe8fc384b67 /win32/ScintillaWin.cxx | |
| parent | ac309ede33a5f5f8ccd1e322953c15c2551be50b (diff) | |
| download | scintilla-mirror-24222616ca4144a340d3086fb60fdbfe3b8aa514.tar.gz | |
Use C++ casts in preference to C casts. Use nullptr instead of 0.
Diffstat (limited to 'win32/ScintillaWin.cxx')
| -rw-r--r-- | win32/ScintillaWin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 6058fedab..ff62918d1 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -491,7 +491,8 @@ void ScintillaWin::Init() { // Find SetCoalescableTimer which is only available from Windows 8+ HMODULE user32 = ::GetModuleHandle(TEXT("user32.dll")); if (user32) { - SetCoalescableTimerFn = (SetCoalescableTimerSig)::GetProcAddress(user32, "SetCoalescableTimer"); + SetCoalescableTimerFn = reinterpret_cast<SetCoalescableTimerSig>( + ::GetProcAddress(user32, "SetCoalescableTimer")); } vs.indicators[SC_INDICATOR_UNKNOWN] = Indicator(INDIC_HIDDEN, ColourDesired(0, 0, 0xff)); |
