diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2017-02-02 09:51:59 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2017-02-02 09:51:59 +1100 |
commit | 46364f5a2859fea503cf364075260c97f1222f56 (patch) | |
tree | ee8cc4bbc2ab753341a2c4b6a7df318118521259 /src | |
parent | c1cdbd08c40a0085b5b54dfaa856e92a26390033 (diff) | |
download | scintilla-mirror-46364f5a2859fea503cf364075260c97f1222f56.tar.gz |
Using better checked static_cast instead of reinterpret_cast for void*.
Diffstat (limited to 'src')
-rw-r--r-- | src/ScintillaBase.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 08b9fe829..ac1a46655 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -202,7 +202,7 @@ int ScintillaBase::KeyCommand(unsigned int iMessage) { } void ScintillaBase::AutoCompleteDoubleClick(void *p) { - ScintillaBase *sci = reinterpret_cast<ScintillaBase *>(p); + ScintillaBase *sci = static_cast<ScintillaBase *>(p); sci->AutoCompleteCompleted(0, SC_AC_DOUBLECLICK); } |