aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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);
}