aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2017-02-02 09:51:59 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2017-02-02 09:51:59 +1100
commit46364f5a2859fea503cf364075260c97f1222f56 (patch)
treeee8cc4bbc2ab753341a2c4b6a7df318118521259
parentc1cdbd08c40a0085b5b54dfaa856e92a26390033 (diff)
downloadscintilla-mirror-46364f5a2859fea503cf364075260c97f1222f56.tar.gz
Using better checked static_cast instead of reinterpret_cast for void*.
-rw-r--r--lexlib/WordList.cxx2
-rw-r--r--src/ScintillaBase.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/lexlib/WordList.cxx b/lexlib/WordList.cxx
index 7741fe093..64a2a50c0 100644
--- a/lexlib/WordList.cxx
+++ b/lexlib/WordList.cxx
@@ -115,7 +115,7 @@ static int cmpWords(const void *a, const void *b) {
}
static void SortWordList(char **words, unsigned int len) {
- qsort(reinterpret_cast<void *>(words), len, sizeof(*words), cmpWords);
+ qsort(static_cast<void *>(words), len, sizeof(*words), cmpWords);
}
#endif
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);
}